Skip to content

Instantly share code, notes, and snippets.

@richardbwest
Last active July 22, 2016 11:57
Show Gist options
  • Save richardbwest/1bfbd99ef328471b9ace09a617e7e1be to your computer and use it in GitHub Desktop.
Save richardbwest/1bfbd99ef328471b9ace09a617e7e1be to your computer and use it in GitHub Desktop.
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