/hangman

A hangman game

Primary LanguagePython

This is my simple 'hangman' game

The game works as follows:

  • Chooses a random word out of 6 words: [3dhubs, marvin, print, filament, order, layer]
  • Display the spaces for the letters of the word (eg: '_ _ _ _ _' for 'order')
  • The user can choose a letter and if that letter exists in the chosen word it should be shown on the puzzle (eg: asks for 'r' and now it shows '_ r _ _ r' for 'order')
  • The user can only ask 5 letters that don't exist in the word and then it's game over. If the user wins, congratulate the user and save their high score (you are free to define what is a “high score”)

Instalation

  1. Clone my repository:
$ git clone https://github.com/carlosribas/hangman.git
  1. Open the Python Interpreter:
$ python
  1. Start the game by typing:
>>> import hangman
  1. Have fun!