Magic 8-ball

 avatar
DillFire55
python
a year ago
5.8 kB
6
Indexable
import random

rand = 0

print('''
  ___________
 /           \\
|             |
|             |
|   8-Ball    |
|             |
|             |
 \\___________/

''')

while True:
    roll = input("Please enter your question or think about it and type roll or type /end to end: ")

    if roll == "/end":
        break

    rand = random.randint(1, 20)
    
    if rand == 1:
        print('''
          __________
         /__________\\
        |\\It is cert/|
        | \\ain     / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')
    elif rand == 2:
        print('''
          __________
         /__________\\
        |\\It is deci/|
        | \\dedly so/ |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 3:
        print('''
          __________
         /__________\\
        |\\Without a /|
        | \\doubt   / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 4:
        print('''
          __________
         /__________\\
        |\\Yes, defin/|
        | \\itely   / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 5:
        print('''
          __________
         /__________\\
        |\\You may re/|
        | \\ly on it/ |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 6:
        print('''
          __________
         /__________\\
        |\\As I see i/|
        | \\t, yes  / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 7:
        print('''
          __________
         /__________\\
        |\\Most likel/|
        | \\y       / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 8:
        print('''
          __________
         /__________\\
        |\\Outlook go/|
        | \\od      / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 9:
        print('''
          __________
         /__________\\
        |\\Yes       /|
        | \\        / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 10:
        print('''
          __________
         /__________\\
        |\\Signs poin/|
        | \\t to yes/ |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 11:
        print('''
          __________
         /__________\\
        |\\Reply hazy/|
        | \\try agai/ |
        |  \\n     /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 12:
        print('''
          __________
         /__________\\
        |\\Ask again /|
        | \\later   / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 13:
        print('''
          __________
         /__________\\
        |\\Better not/|
        | \\ tell yo/ |
        |  \\u now /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 14:
        print('''
          __________
         /__________\\
        |\\Cannot pre/|
        | \\dict now/ |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 15:
        print('''
          __________
         /__________\\
        |\\Concentrat/|
        | \\e and as/ |
        |  \\k agai/  |
        |   \\n    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 16:
        print('''
          __________
         /__________\\
        |\\Don't coun/|
        | \\t on it / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 17:
        print('''
          __________
         /__________\\
        |\\My reply i/|
        | \\s no    / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 18:
        print('''
          __________
         /__________\\
        |\\My sources/|
        | \\say no  / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 19:
        print('''
          __________
         /__________\\
        |\\Outlook no/|
        | \\t so goo/ |
        |  \\d      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')

    elif rand == 20:
        print('''
          __________
         /__________\\
        |\\Very doubt/|
        | \\ful     / |
        |  \\      /  |
        |   \\    /   |
        |    \\  /    |
         \\____\\/_____/
              ¯¯
        ''')
Editor is loading...
Leave a Comment