Rules
  1. Objective: The objective of Hangman Game is to guess a hidden word by suggesting letters within a limited number of attempts.
  2. Word Selection: A word is selected at random from a predefined word bank. The word can be a common English word, a phrase, a name, or any other category specified in the game.
  3. Game Display: At the beginning of the game, a series of dashes or underscores representing the letters in the word is displayed. The number of dashes or underscores corresponds to the number of letters in the word.
  4. Guessing Letters: Players can guess letters by selecting them from an on-screen keyboard or by typing them using their physical keyboard. The letter guessed should be a valid English alphabet character (A-Z).
  5. Correct Guess: If the guessed letter is present in the word, all occurrences of that letter in the word are revealed in their respective positions. The player's number of attempts remains the same, and they can continue guessing.
  6. Incorrect Guess: If the guessed letter is not present in the word, the hangman's gallows starts to appear gradually. With each incorrect guess, a part of the hangman's body, such as the head, body, arms, or legs, is drawn. The number of incorrect guesses allowed may vary, but typically it is limited to 6 or 7 incorrect guesses.
  7. Maximum Attempts: The player has a limited number of attempts to guess the word correctly before the hangman's body is completely drawn. If the player exceeds the maximum number of incorrect guesses, the game ends, and the player loses.
  8. Winning the Game: The player wins the game by correctly guessing all the letters in the word before using up all the attempts. When all the letters are revealed, the complete word is displayed, and the player is declared the winner.
  9. Score Tracking: The game keeps track of the player's score by recording the number of wins and losses. Players can challenge themselves or compete with others to achieve a high score.
  10. Replayability: After completing a game, players can choose to play again with a new word from the word bank, offering a fresh challenge and opportunity to improve their performance.

Remember, each Hangman Game may have slight variations in rules and gameplay mechanics, but the core objective remains the same - to guess the hidden word within a limited number of attempts.