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()
@Bisyri07
Copy link

Bisyri07 commented Sep 2, 2023

thank you friend

@saraehsn
Copy link

saraehsn commented Oct 5, 2023

Thank you

@Ambijubi
Copy link

Thank you!

@parham-ab
Copy link

thanks!

@nourithegoat
Copy link

thank you

@charliejlevine
Copy link

🙏🙏

@zeynelerenkinali
Copy link

Thank you!

@casp137b
Copy link

casp137b commented Jan 8, 2024

Thank you! <3

@Swaxa
Copy link

Swaxa commented Jan 8, 2024

Thank you g

@HaftamuM
Copy link

Thanks

@KEIAHNY
Copy link

KEIAHNY commented Jan 18, 2024

thanks

@A-Funyarinpa
Copy link

Super convenient. Thanks.

@wolfman456
Copy link

thanks

@ahmarammar
Copy link

Thanks mate!

@bjchapm
Copy link

bjchapm commented Apr 17, 2024

Thanks for this!

@YunussEmree
Copy link

Thanks!

@JosephAdeoye
Copy link

Thank you

@HansQueja
Copy link

Thanks!

@preslaviliev93
Copy link

Thank you!

@SoupleCodes
Copy link

Thank you!

@zubairxshah
Copy link

Wow, that's an amazing art in a code. 😃

@mehsayanhoon
Copy link

Thank you 🔥

@mayurhapani
Copy link

thank you sir for this i is very use full

@mhrafin
Copy link

mhrafin commented Aug 17, 2024

In reverse,

hangman = ['''
  +---+
  |   |
  O   |
 /|\  |
 / \  |
      |
=========''','''
  +---+
  |   |
  O   |
 /|\  |
 /    |
      |
=========''','''
  +---+
  |   |
  O   |
 /|\  |
      |
      |
=========''','''
  +---+
  |   |
  O   |
 /|   |
      |
      |
=========''','''
  +---+
  |   |
  O   |
  |   |
      |
      |
=========''', '''
  +---+
  |   |
  O   |
      |
      |
      |
=========''','''
  +---+
  |   |
      |
      |
      |
      |
=========''',]

@CHEIKH-M97
Copy link

Thank you.

@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