Skip to content

Latest commit

 

History

History

Task1_HangmanGame_Final_Version v.1.6.7

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

This Game was developed by Abdelrahman Mohamed Hamad

Table of Contents

About Hangman Game

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.

Instructions

  1. Check Python3: Ensure you have Python3 installed.
  2. Install Libraries: Ensure you have "tkinter" and "customtkinter" libraries installed. If not, install them using the following commands:
    • pip install tkinter
    • pip install customtkinter
  3. Run the Game:
    • Open "Hangman Game.bat" to start the game.
    • Or run the code in "Hangman_Game.py".

How to Play

  1. 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
  2. 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.
  3. 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.

Contact

If you have any questions, feel free to contact me: