Skip to content

Instantly share code, notes, and snippets.

@chrishorton
Created May 21, 2017 17:16
Show Gist options
  • Save chrishorton/8510732aa9a80a03c829b09f12e20d9c to your computer and use it in GitHub Desktop.
Save chrishorton/8510732aa9a80a03c829b09f12e20d9c to your computer and use it in GitHub Desktop.
Hangman ascii art and wordbank
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()
@Ramshreya
Copy link

do it work

@schmolldechse
Copy link

thank you

@CodeName-Anti
Copy link

thank you

@yassmine20022
Copy link

thank you

@Sunny98989
Copy link

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