Created
May 21, 2017 17:16
-
-
Save chrishorton/8510732aa9a80a03c829b09f12e20d9c to your computer and use it in GitHub Desktop.
Hangman ascii art and wordbank
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
HANGMANPICS = [''' | |
+---+ | |
| | | |
| | |
| | |
| | |
| | |
=========''', ''' | |
+---+ | |
| | | |
O | | |
| | |
| | |
| | |
=========''', ''' | |
+---+ | |
| | | |
O | | |
| | | |
| | |
| | |
=========''', ''' | |
+---+ | |
| | | |
O | | |
/| | | |
| | |
| | |
=========''', ''' | |
+---+ | |
| | | |
O | | |
/|\ | | |
| | |
| | |
=========''', ''' | |
+---+ | |
| | | |
O | | |
/|\ | | |
/ | | |
| | |
=========''', ''' | |
+---+ | |
| | | |
O | | |
/|\ | | |
/ \ | | |
| | |
========='''] | |
#Word bank of animals | |
words = ('ant baboon badger bat bear beaver camel cat clam cobra cougar ' | |
'coyote crow deer dog donkey duck eagle ferret fox frog goat ' | |
'goose hawk lion lizard llama mole monkey moose mouse mule newt ' | |
'otter owl panda parrot pigeon python rabbit ram rat raven ' | |
'rhino salmon seal shark sheep skunk sloth snake spider ' | |
'stork swan tiger toad trout turkey turtle weasel whale wolf ' | |
'wombat zebra ').split() | |
do it work
thank you
thank you
thank you
if you see an error like THIS: SyntaxWarning: invalid escape sequence '\ '
fix it by writing r at each str element
hangman = [r'''
+---+
| |
O |
/|\ |
/ \ |
|
=========''', r'''
+---+
| |
O |
/|\ |
/ |
|
=========''', r'''
+---+
| |
O |
/|\ |
|
|
=========''', r'''
+---+
| |
O |
/| |
|
|
=========''', r'''
+---+
| |
O |
| |
|
|
=========''', r'''
+---+
| |
O |
|
|
|
=========''', r'''
+---+
| |
|
|
|
|
=========''']
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you.