List of Symbolic representation of losing the tries / for wrong attempts (THE HANGMAN)
(tries)
| 6 | |
| 7 | |
| 8 | def hangman(tries): |
| 9 | """ |
| 10 | List of Symbolic representation of losing the tries / for wrong attempts |
| 11 | (THE HANGMAN) |
| 12 | """ |
| 13 | stages = [ |
| 14 | """ |
| 15 | # final state |
| 16 | -------- |
| 17 | | | |
| 18 | | O |
| 19 | | \\|/ |
| 20 | | || |
| 21 | | // \\ |
| 22 | - |
| 23 | """, |
| 24 | """ |
| 25 | # head, torso, four legs, four arms |
| 26 | -------- |
| 27 | | | |
| 28 | | O |
| 29 | | \\|/ |
| 30 | | | |
| 31 | | // \\ |
| 32 | - |
| 33 | """, |
| 34 | # head, torso, both arms, and both legs |
| 35 | """ |
| 36 | -------- |
| 37 | | | |
| 38 | | O |
| 39 | | \\|/ |
| 40 | | | |
| 41 | | / \\ |
| 42 | - |
| 43 | """, |
| 44 | # head, torso, both arms, and one leg |
| 45 | """ |
| 46 | -------- |
| 47 | | | |
| 48 | | O |
| 49 | | \\|/ |
| 50 | | | |
| 51 | | / |
| 52 | - |
| 53 | """, |
| 54 | # head, torso, and both arms |
| 55 | """ |
| 56 | -------- |
| 57 | | | |
| 58 | | O |
| 59 | | \\|/ |
| 60 | | | |
| 61 | | |
| 62 | - |
| 63 | """, |
| 64 | # head, torso, and one arm |
| 65 | """ |