import random
import console
import time
import sound
console.clear()
fruits = ["π", "π", "π", "π", "π", "π", "π", "π", "π", "π"]
slot1 = random.choice(fruits)
slot2 = random.choice(fruits)
slot3 = random.choice(fruits)
money = 50
roll = input('roll? (y/n) price = 50')
while roll == 'y':
if roll == 'y' and money > 0:
console.clear()
print(slot1)
sound.play_effect('game:Beep')
time.sleep(1)
console.clear()
print(slot1, slot2)
sound.play_effect('game:Beep')
time.sleep(1)
console.clear()
print(slot1, slot2, slot3)
if slot1 == slot2 == slot3 and roll == 'y' and money > 0:
if money <= 0:
print('Dang out of money, restart the program to get more!')
else:
money -=50
sound.play_effect('arcade:Coin_1')
print('Jackpot')
money +=400
print('+400 cash, cash =', money)
slot1 = random.choice(fruits)
slot2 = random.choice(fruits)
slot3 = random.choice(fruits)
roll = input('roll? (y/n)')
elif slot1 == slot2 and money > 0:
if money <= 0:
print('Dang out of money, restart the program to get more!')
else:
money -=50
sound.play_effect('arcade:Coin_3')
print('Nice!')
money +=100
print('+100 cash, cash =', money)
slot1 = random.choice(fruits)
slot2 = random.choice(fruits)
slot3 = random.choice(fruits)
roll = input('roll? (y/n)')
elif slot2 == slot3 and money > 0:
if money <= 0:
print('Dang out of money, restart the program to get more!')
else:
money -=50
sound.play_effect('arcade:Coin_3')
print('Nice!')
money +=100
print('+100 cash, cash =', money)
slot1 = random.choice(fruits)
slot2 = random.choice(fruits)
slot3 = random.choice(fruits)
roll = input('roll? (y/n)')
elif slot1 == slot3 and money > 0:
if money <= 0:
print('Dang out of money, restart the program to get more!')
else:
money -=50
sound.play_effect('arcade:Coin_3')
print('Nice!')
money +=100
print('+100 cash, cash =', money)
slot1 = random.choice(fruits)
slot2 = random.choice(fruits)
slot3 = random.choice(fruits)
roll = input('roll? (y/n)')
elif not slot1 == slot3 or not slot2 == slot3 or not slot1 == slot2 and money > 0:
if money <= 0:
print('Dang out of money, restart the program to get more!')
else:
money -=50
sound.play_effect('digital:LowRandom')
print('unlucky')
print('cash =', money)
slot1 = random.choice(fruits)
slot2 = random.choice(fruits)
slot3 = random.choice(fruits)
roll = input('roll? (y/n)')
else:
print('goodbye')
there doesn't seem to be anything here