cli-games icon indicating copy to clipboard operation
cli-games copied to clipboard

Wordle

Open AttAditya opened this issue 1 year ago • 1 comments

CLI Wordle Game

This PR introduces a CLI implementation of the popular word-guessing game "Wordle". The game is entirely text-based and playable in the terminal. Users have six attempts to guess the hidden word with feedback provided on each guess (correct, incorrect, or partially correct letters).

Wordle By The New Times: https://www.nytimes.com/games/wordle/index.html

Features

  • Fully functional Wordle game with a 6-guess limit.
  • Feedback for each guessed word based on letter correctness:
    • Correct letters in the right position are marked in green.
    • Correct letters in the wrong position are marked in yellow.
    • Incorrect letters are marked in white.
  • Random word generation from a predefined word list.
  • Text-based interface using ANSI colors for visual feedback. (Function borrowed from code @salif)
  • Smooth game loop with user input handling and dynamic board display.

Preview

  • Preview 1
  • Preview 2
  • Preview 3

How to Play

Use games.sh

  1. Run ./games.sh
  2. Select [7] Wordle

Running using games

Run Directly

  1. Clone the repository and navigate to the cli-games directory.
  2. Ensure Node.js is installed on your system.
  3. Run the game with:
    npm run play
    

Notes

  • Additional instructions on playing the game is provided in Wordle/README.md
  • Closes #85

AttAditya avatar Oct 24 '24 20:10 AttAditya

Would love if we can get this PR to be hacktoberfest-accepted as well 😄

AttAditya avatar Oct 24 '24 20:10 AttAditya

Thank you!

salif avatar Jun 04 '25 09:06 salif