Making of the Game
The rules of the game
- The player’s goal is to guess all the letters present in a random phrase. In the beginning, the player only sees the number of letters and words in the phrase, with blank boxes on the screen.
- The player clicks an onscreen keyboard to guess letters in the phrase.
- The letter is disabled on the onscreen keyboard and a player can’t select that letter again.
- If the letter is in the phrase at least once, the letter and its position in the phrase is highlighted on screen. All instances of the letter are visible (so if there are 3 A’s, all of the A’s in the phrase appear at once).
If you are able to guess the correct phrase, then the background changes to green color. But if the player fails to guess the correct phrase, then the background changes to red color.
How To Run the Project?
To run this game, you don’t need to have any kind of local server but yet a browser. We recommend you to use modern browsers like Google Chrome and Mozilla Firefox. To play the game, first, open the game in your browser by clicking the index.html file.