/word-guessing-game

Command line hangman without the crass.

Primary LanguagePythonMIT LicenseMIT

Word Guessing Game

Description

Command line hangman without the crass.

How it Works

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.

Usage

  1. Clone the respository.
git clone https://github.com/ColeBallard/word-guessing-game
  1. Install the latest version of python. Downloads.

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