Wordle Clone using JavaScript and HTML.
-
Start a local web server in the project directory:
# Using Python 3 (recommended) python3 -m http.server 8000 # Alternative using Python 2 python -m SimpleHTTPServer 8000
-
Open your web browser and navigate to:
http://localhost:8000 -
The game should now be running in your browser!
- The goal is to guess a 5-letter word in 8 or fewer attempts.
- Type your 5-letter guess in the input field and click "Submit".
- After each guess, the colors will change to give you clues:
- Green: The letter is in the correct position
- Red: The letter is in the word but in the wrong position
- Gray: The letter is not in the word
- Use these clues to make better guesses and solve the word!
- When the game ends (win or lose), you'll be asked if you want to play again.
To stop the server when you're done playing, go to the terminal where it's running and press Ctrl+C.
Alternatively, you can use this command to find and kill the process:
kill $(lsof -ti:8000)