GithubHelp home page GithubHelp logo

wordle-cplusplus's Introduction

wordle-cplusplus

This is a simple Wordle clone coded in C++ for playing on the terminal, in the vein of the terminal games you'd find poking around on a Linux box in /usr/bin/games.

Compilation

I've compiled on Windows 10 using gcc in both Mingw/Msys64 and WSL2 (Ubuntu). There's a Makefile in the project, but if you need to compile manually:

g++ -std=gnu++17 -Wall -Wextra src/wordle.cpp -o bin/wordle.exe
cp assets/words.txt bin/words.txt
cd bin && .\wordle.exe

Gameplay demo

PS ..\bin> .\wordle.exe
Loading wordlist... done

You have 6 guesses to guess the five-letter word.

Legend:
* Correct letter, correct location
. Incorrect, not in puzzle
^ Correct letter, wrong location

 A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z
1/6 > darth
You must enter a valid 5-letter word.
1/6 > worth
worth
...**
 A  B  C  D  E  F  G *H  I  J  K  L  M  N     P  Q     S *T  U  V     X  Y  Z
2/6 > filth
filth
...**
 A  B  C  D  E     G *H     J  K     M  N     P  Q     S *T  U  V     X  Y  Z
3/6 > heath
heath
^****
*A  B  C  D *E     G *H     J  K     M  N     P  Q     S *T  U  V     X  Y  Z
4/6 > death
death
*****

Congratulations; you won in 4 guesses.
PS ..\bin> .\wordle.exe
Loading wordlist... done

You have 6 guesses to guess the five-letter word.

Legend:
* Correct letter, correct location
. Incorrect, not in puzzle
^ Correct letter, wrong location

 A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z
1/6 > wrath
wrath
.....
    B  C  D  E  F  G     I  J  K  L  M  N  O  P  Q     S     U  V     X  Y  Z
2/6 > bends
bends
....^
       C        F  G     I  J  K  L  M     O  P  Q    ^S     U  V     X  Y  Z
3/6 > quips
quips
..^.^
       C        F  G    ^I  J  K  L  M     O          ^S        V     X  Y  Z
4/6 > quit
The word was silly.

wordle-cplusplus's People

Contributors

samcan avatar

Watchers

 avatar

Forkers

spraggler

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.