This Game was developed by Abdelrahman Mohamed Hamad
It is a word-guessing game. The player chooses a category, and a secret word is randomly picked from the selected category. The player then tries to guess the secret word.
- Wrong Guess: When the player guesses a letter that isn't in the word, the game draws part of a stickman for each wrong guess.
- Correct Guess: When the player guesses a letter that is in the word, the letter is assigned to its location, and the game continues.
- Losing: If the drawing of the stickman is completed, the stickman is hanged, and the player loses.
- Winning: If the player guesses the secret word right before the drawing is completed, they win, and the stickman is saved.
- Check Python3: Ensure you have Python3 installed.
- Install Libraries: Ensure you have "tkinter" and "customtkinter" libraries installed. If not, install them using the following commands:
pip install tkinter
pip install customtkinter
- Run the Game:
- Open "Hangman Game.bat" to start the game.
- Or run the code in "Hangman_Game.py".
-
Category Selection:
- After opening the game, you will have two text boxes to type in.
- The first text box is for choosing the category. You can select from:
- '1': Numbers
- '2': Animals
- '3': Colors
- '4': Clothes
- '5': Body
- Otherwise: All categories
-
Guessing the Word:
- After choosing the category, the game will randomly select a secret word from the chosen category.
- The second text box is for typing a letter and pressing enter.
- If the letter is in the secret word, it is assigned to its location, and the game continues.
- If the letter isn't in the secret word, the game draws a part of a stickman, and the game continues.
-
Winning or Losing:
- The game continues until all letters are guessed correctly (win), or the drawing of the stickman is completed (loss).
- After finishing the game, press space to reset.
If you have any questions, feel free to contact me:
- Phone: +201028325749
- Email: a.mohamed822000@gmail.com
- LinkedIn: Abdelrahman Mohamed Hamad