In this game, the user only enters the number of letters existing in that word, and the computer tries to guess them based on a fixed number of attempts. The game ends if the computer correctly guessed all the letters in order or used all of the given attempts.
Install Python 3
./hangman.py
nano hangman.py
#!/usr/bin/env python
sudo chmod +x hangman.py
./hangman.py
## Project Images
![Game Start Screenshot](/images/screenshot-1.jpeg?raw=true "Game Start")
![Correct Guess Screenshot](/images/screenshot-2.jpeg?raw=true "Correct Guess")
![Wrong Guess Screenshot](/images/screenshot-3.jpeg?raw=true "Wrong Guess")
![Game Won Screenshot](/images/screenshot-4.jpeg?raw=true "Game Won")
![Game Lost Screenshot](/images/screenshot-5.jpeg?raw=true "Game Lost")
![Wrong Hint Screenshot](/images/screenshot-6.jpeg?raw=true "Wrong Hint")
## Resources
Want to learn about how guessing was made more efficient in this hangman game? Check out this link:
https://datagenetics.com/blog/april12012/index.html
Here you will find info on how to increase your chances of guessing the correct letters based on the length of the given word. It's called an Optimal Calling Order.