Skip to content

jersson/learning-python-with-games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

learning-python-with-games

prerequisites

what's your number?

  $ python whats-your-number/game.py
  Please think of a number between 0 and 100!
  - Is your secret number 50?
  Enter:
  - 'h' to indicate the guess is too high. 
  - 'l' to indicate the guess is too low. 
  - 'c' to indicate I guessed correctly.
  Your answer...

hangman

  $ python hangman/game.py 
  Loading word list from file...
    55909 words loaded.
  Welcome to the game, Hangman!
  I am thinking of a word that is 8 letters long.
  -------------
  You have 8 guesses left.
  Available letters: abcdefghijklmnopqrstuvwxyz
  Please guess a letter: