Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wordle #84

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Wordle #84

wants to merge 2 commits into from

Conversation

AttAditya
Copy link

@AttAditya AttAditya commented Oct 24, 2024

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

@AttAditya
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[GAME SUGGESTION] Wordle - CLI Edition
2 participants