Command line hangman without the crass.
A random word is chosen from a full dictionary list. A player starts with 7 guesses. On each turn, a player can guess a letter or guess the full word. If the player guesses a letter that is in the word, the computer will show the player the position of each instance of that letter.
When the player has 0 guesses, the game is over and the player has lost. If the player guesses the word correctly, the game is over and the player has won. If the player guesses the word incorrectly and the total guesses left is greater then 2, they lose 1 guess. If they guess the word incorrectly and the total guesses they have left is 1, they lose the game.
- Clone the respository.
git clone https://github.com/ColeBallard/word-guessing-game
-
Install the latest version of python. Downloads.
-
Run part4.py python file (part3.py works the same, just replace part4.py with part3.py).
C:/Users/YourName/word-guessing-game/part4.py