a C90 implementation of PYRDLE
Go to file
2026-01-26 20:24:11 +00:00
dosbox more C90 strictness; move dos stuff into a dosbox folder 2025-12-18 10:03:02 +00:00
img add screenshots to readme 2025-12-18 10:56:00 +00:00
include more investigation of c90 compliance and dos compatibility 2026-01-26 20:24:11 +00:00
src more investigation of c90 compliance and dos compatibility 2026-01-26 20:24:11 +00:00
wordlists rename word files 2025-12-17 09:59:33 +00:00
.clang-tidy more C90 strictness; move dos stuff into a dosbox folder 2025-12-18 10:03:02 +00:00
.editorconfig add configs for IDE awareness 2025-12-18 12:09:29 +00:00
.gitignore more C90 strictness; move dos stuff into a dosbox folder 2025-12-18 10:03:02 +00:00
build.sh minor tweak 2025-12-18 12:12:24 +00:00
CMakeLists.txt comment cmakelists to reduce confusion 2026-01-26 14:53:22 +00:00
DOS_BUILD.md implement DOS compatibility 2026-01-26 14:29:55 +00:00
Makefile implement DOS compatibility 2026-01-26 14:29:55 +00:00
README.md update the readme 2026-01-26 14:47:26 +00:00

CORDLE - The C90 Version of Wordle

A C90 implementation of the famous word game Wordle. I originally wrote this in Python, and decided to rewrite it in C90, to remediate myself, and to have a project I could work with in my old copy of DOS TurboC. Feel free to do whatever you like with it.

Requirements

Unix/Linux/macOS

  • C90 compliant compiler (gcc recommended)
  • ncurses library
  • GNU Make

DOS

  • DJGPP or Borland C compiler
  • PDCurses library
  • GNU Make (for DJGPP)

See DOS_BUILD.md for detailed DOS build instructions.

Build

$ make

This will:

  • Compile all source files with C90 compliance flags
  • Create the cordle executable in build/
  • Copy wordlists to build/wordlists/

Alternative: Using build.sh

$ ./build.sh
Building application.
Compile successful. Copying wordlists...
Build completed.

Other Make Targets

$ make help        # Show all available targets
$ make clean       # Remove build artifacts
$ make rebuild     # Clean and rebuild from scratch
$ make install     # Install system-wide to /usr/local
$ make uninstall   # Remove installed files

Install

System-wide Installation (Unix/Linux/macOS)

$ sudo make install

This installs:

  • Binary to /usr/local/bin/cordle
  • Wordlists to /usr/local/share/cordle/wordlists/

The game will automatically find wordlists in:

  1. wordlists/ (relative to current directory)
  2. /usr/local/share/cordle/wordlists/
  3. $HOME/.local/share/cordle/wordlists/
  4. Custom path via --wordlist option

Manual Installation

Copy the binary and wordlists to your preferred location:

$ cp build/cordle ~/bin/
$ cp -R wordlists ~/bin/

DOS Installation

See DOS_BUILD.md for DOS-specific installation instructions.

Run

$ cordle --help
cordle - C90 Wordle Game

Usage: cordle [OPTIONS]

Difficulty Levels:
  --easy       Common everyday words (default)
  --medium     Standard vocabulary
  --hard       Challenging words

Word Categories:
  --techy      Technical and scientific terms
  --literary   Literary and archaic terms
  --cultural   Cultural and international terms
  --full       Complete dictionary

Custom:
  --wordlist FILE   Use custom word list

Examples:
  cordle --easy
  cordle --techy
  cordle --wordlist mywords.txt

After Installation

If installed system-wide, run from anywhere:

$ cordle
$ cordle --medium
$ cordle --hard

Screenshots

New Game

New Game

Win Game

Win Game

Lose Game

Lose Game