Last active
July 22, 2016 11:57
-
-
Save richardbwest/1bfbd99ef328471b9ace09a617e7e1be to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
#Global variables and lists to be used throughout my program. | |
wordsList = ["dog","cat","mouse","hyena"] | |
usedLetters = [] | |
lives = 5 | |
def mainScreen(): | |
os.system('clear') | |
print("Welcome to the Hangman game\n\n") | |
drawStickMan() # Draw the stick man | |
print("\n\n") | |
drawTheWord() | |
print("\n\n") | |
showUsedLetters() | |
print("\n\n") | |
getALetter() | |
def drawStickMan(): | |
print("I'm a stickman") | |
def drawTheWord(): | |
print("I'm the word with blanks") | |
def showUsedLetters(): | |
print("Looking I'm drawing the used letters") | |
def getALetter(): | |
print("Look, I'm getting a letter from the user") | |
mainScreen() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment