This is a web-based application that features three word games: Wordle, Hangman and Word Ladder. The application provides an interface for playing these games interactively.
This application provides three word-based games: Hangman, Word Ladder, and Wordle. Users can interact with the AI agent to play Hangman, word ladders, and solve Wordle puzzles. The project is built using Python, Flask, and various libraries for language processing.
- The AI selects a random word.
- You have a limited number of attempts to guess the word.
- You can guess one letter at a time.
- Correctly guessed letters are revealed in their positions.
- Incorrect guesses reduce the remaining attempts.
- Guess the entire word within the attempts to win.
- If you run out of attempts without guessing the word, you lose.
- The server selects a random five-letter word.
- You have a limited number of attempts to guess the word.
- After each guess, you'll receive feedback on the correctness of each letter.
- A correct letter in the correct position is marked as "correct_positions"
- A correct letter in the wrong position is marked as "correct_letters_wrong_positions"
- Incorrect letters are marked as "incorrect_letters"
- Use the feedback to make educated guesses and solve the word within attempts.
- Guess the entire word correctly within the attempts to win.
- The server generates a word ladder between two random words.
- A word ladder is a sequence of words, where each word differs by only one letter from the previous word.
- You're provided with the start and end words.
- The challenge is to find a sequence of intermediate 5. words that link the start and end words.
- Each intermediate word must be present in a standard dictionary.
- Clone the repository to your local machine.
- Run the Count_Table Creator.ipynb and you get the Count_Table.npy
- Install Docker on your machine.
- Build the Docker image:
docker build -t absurd-agents .
- Run the Docker container:
docker run -p 5000:5000 absurd-agents
- To use your custom dictionary use -v flag to mount your dictionary and set the USE_CUSTOM_DICTIONARY environment variable as True:
docker run --name wordle-game-1 -p 5000:5000 -e USE_CUSTOM_DICTIONARY=True -v "$(pwd)/dictionary.csv:/app/custom_dictionary/dictionary.csv" wordle-game
- To start game for user:
/hangman/start_game
(POST) - To guess letter for user:
/hangman/guess
(POST) - You can enter your guess using the parameter guess, for example, if your guess letter is 's', then you can enter this command on your terminal
http POST http://localhost:5000/hangman/guess guess=s
- For agent to play:
hangman/agent
(POST)
- To start game for user:
/wordle/start_game
(POST) - To guess letter for user:
/wordle/guess
(POST) - You can enter your guess using the parameter guess, for example, if your guess letter is 'sport', then you can enter this command on your terminal
http POST http://localhost:5000/wordle/guess guess=sport
- To start game for user:
/word_ladder/start_game
(GET) - To guess letter for user:
/word_ladder/guess
(POST) - You can enter your guess using the parameter guess, for example, if your guess letter is 'mute', then you can enter this command on your terminal
http POST http://localhost:5000/word_ladder/guess guess=mute
- Flask
- NumPy