Gives the popular single-player game Wordle a competitive twist.
All the game action takes place from the home page. Users may type letters using a physical keyboard while the game screen is selected (pressing the Enter key submits the guess), or by utilizing the custom keyboard along the bottom of the window. After the guess is submitted, the game will color code each letter in the guess:
- Letter is not in the word - Black
- Letter is in the word but the wrong location - Yellow
- Letter is in the word at the correct location - Green
The keyboard along the bottom of the screen will also indicate which letters have been used and the appropriate status.
Users without an account can experience the solo, single-player version. To enable match-play (up to 2 players at this time), and to save game stats, the user must log in or create an account.
This app utilizes Socket.IO for the majority of the game logic. The secret word is stored in server memory on each game session and not accessible to the user until the word is guessed or 6 guesses have been submitted. When a user submits a guess, the server processes the guess and sends in real-time to all users in the session whether each letter is in-place, out-of-place, or not in the secret word (without information on the letters submitted).
On match-play, the server waits until both players have completed (by either correctly guessing the word or guessing incorrectly 6 times) to determine the winner of the match, the priorities to determine the winner of a match are as follows:
Both players guess the word correctly
- The player with the least amount of guess to the correct word.
- The player that guesses the correct word earlier.
One player guesses the word
- The player the guesses the word.
Neither player guesses the word
- The player with the most letters in the correct spot on the final guess.
- The player with the most letters from the secret word on the final guess.
- The player that completes the guesses earlier.
Note: Completion time is only used when all other stats are equal.
https://wordle-clash.herokuapp.com/
HTML, CSS, Bootstrap, JavaScript, Node.js, Socket.IO, Handlebars
PostgreSQL using Sequelize ORM
Word list from Word Game Dictionary