Hangman Game: Game of guess
What is Hangman game?
Hangman is a word-guessing game that is often played between two people. One person thinks of a word and draws a blank line for each letter in the word. The other person tries to guess the word by suggesting letters. For each incorrect guess, a part of a stick figure (representing a “hangman”) is drawn. The goal is to guess the word before the hangman is fully drawn.
How to play
Setup
- The computer randomly picks a word from a guessed_word.
- Determine the maximum number of guesses (life) allowed. You have a chance of 6 lifes
Displaying the Word
Display spaces “(_)” to represent each letter in the chosen word.
Guessing Letters
«««< HEAD

Incorrect Guesses
- If the player makes incorrect guess and it is not present in the spaces revealed “(_)” . The player loses a life.
- It also keep track of a alphabet that is alraedy guessed “You have already guessed a letter”
- Keep track of a guess counter.
Victory Condition
- If all letters are correctly guessed before reaching or exceeding the number of life. You win!
Defeat Condition
Starting a New Round
A Range of Words
- The word keeper, the computer selects words each time leading to challenges.
Increasing Challenge
- As players gain experience they may come across words that are more complex and longer in length.
Developing Strategies
-
Experienced players often develop their strategies to improve their chances of guessing the word. For example starting with vowels or common consonants can be helpful.
-
Personal Preferences
-
Players may develop preferences for word categories or themes. This can influence how much they enjoy the game.
-
Sharpened Deduction Skills
-
Returning players tend to enhance their deduction skills over time. They become better at making educated guesses based on patterns and the revealed letters.
-
Multiplayer Experience
-
In multiplayer settings players who come back to the game can enjoy the aspect of playing with friends or family competing against each other.
-
Wireframes
Features
Frameworks, Libraries & Programs Used
- Hangman logo:
- At the start of the guessing game, hangman logo appear
- guess_word:
- The guess_word list was generated by openai.
- GitHub:
- GitHub is used to store the projects code after being pushed from Git.
Testing
- Pass the code through a PEP8 linter and confirmed: All clear, no errors found
- I test on my local terminal.
Remaining Bugs
-
No bugs remaining
Validator Testing
- PEP8
- No errors were returned from testing
Deployment
GitHub Pages
The project was deployed to GitHub Pages using the following steps…
- Log in to GitHub and locate the GitHub Repository
- At the top of the Repository (not top of page), locate the “Settings” Button on the menu.
- Alternatively Click Here for a GIF demonstrating the process starting from Step 2.
- Scroll down the Settings page until you locate the “GitHub Pages” Section.
- Under “Source”, click the dropdown called “None” and select “Master Branch”.
- The page will automatically refresh.
- Scroll back down through the page to locate the now published site link in the “GitHub Pages” section.
The live link can be found here - https://samakinbile.github.io/Hangman/
Credits
Acknowledgements