Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- import time
- cash = 500;
- def start():
- print "You now have", cash ,"$"
- youwannaplay()
- def youwannaplay():
- eee = raw_input("Insert 10$ to start (Press enter)")
- if eee == "":
- print '-10 $'
- game()
- elif cash < 10:
- print 'Insufficent money, game over you play-a-holic!'
- else:
- print "Invalid input"
- start()
- def game():
- global cash
- cash = cash - 10
- time.sleep(float(0.5))
- print 'The wheels begins to roll...'
- time.sleep(float(1.5))
- print "*Wheel One stops*"
- a = random.randint(1,12)
- if a == 1:
- oneOne = "Potatis"
- oneTwo = "Gurka"
- oneThree = "Morot"
- elif a == 2:
- oneOne = "Gurka"
- oneTwo = "Morot"
- oneThree = "Potatis"
- elif a == 3:
- oneOne = "Morot"
- oneTwo = "Potatis"
- oneThree = "Gurka"
- elif a == 4:
- oneOne = "Potatis"
- oneTwo = "Gurka"
- oneThree = "Morot"
- elif a == 5:
- oneOne = "Gurka"
- oneTwo = "Morot"
- oneThree = "Potatis"
- elif a == 6:
- oneOne = "Morot"
- oneTwo = "Potatis"
- oneThree = "Gurka"
- elif a == 7:
- oneOne = "Potatis"
- oneTwo = "Gurka"
- oneThree = "Morot"
- elif a == 8:
- oneOne = "Gurka"
- oneTwo = "Morot"
- oneThree = "Potatis"
- elif a == 9:
- oneOne = "Morot"
- oneTwo = "Potatis"
- oneThree = "Gurka"
- elif a == 10:
- oneOne = "Coin"
- oneTwo = "Gurka"
- oneThree = "Morot"
- elif a == 11:
- oneOne = "Potatis"
- oneTwo = "Coin"
- oneThree = "Morot"
- elif a == 12:
- oneOne = "Potatis"
- oneTwo = "Gurka"
- oneThree = "Coin"
- print "The first row from left to right:",oneOne,",",oneTwo,",",oneThree
- time.sleep(float(1.5))
- print "*Wheel Two stops*"
- b = random.randint(1,12)
- if b == 1:
- twoOne = "Potatis"
- twoTwo = "Gurka"
- twoThree = "Morot"
- elif b == 2:
- twoOne = "Gurka"
- twoTwo = "Morot"
- twoThree = "Potatis"
- elif b == 3:
- twoOne = "Morot"
- twoTwo = "Potatis"
- twoThree = "Gurka"
- elif b == 4:
- twoOne = "Potatis"
- twoTwo = "Gurka"
- twoThree = "Morot"
- elif b == 5:
- twoOne = "Gurka"
- twoTwo = "Morot"
- twoThree = "Potatis"
- elif b == 6:
- twoOne = "Morot"
- twoTwo = "Potatis"
- twoThree = "Gurka"
- elif b == 7:
- twoOne = "Potatis"
- twoTwo = "Gurka"
- twoThree = "Morot"
- elif b == 8:
- twoOne = "Gurka"
- twoTwo = "Morot"
- twoThree = "Potatis"
- elif b == 9:
- twoOne = "Morot"
- twoTwo = "Potatis"
- twoThree = "Gurka"
- elif b == 10:
- twoOne = "Coin"
- twoTwo = "Gurka"
- twoThree = "Morot"
- elif b == 11:
- twoOne = "Potatis"
- twoTwo = "Coin"
- twoThree = "Morot"
- elif b == 12:
- twoOne = "Potatis"
- twoTwo = "Gurka"
- twoThree = "Coin"
- print "The second row from left to right:",twoOne,",",twoTwo,",",twoThree
- time.sleep(float(1.5))
- print "*Wheel Three stops*"
- c = random.randint(1,12)
- if c == 1:
- threeOne = "Potatis"
- threeTwo = "Gurka"
- threeThree = "Morot"
- elif c == 2:
- threeOne = "Gurka"
- threeTwo = "Morot"
- threeThree = "Potatis"
- elif c == 3:
- threeOne = "Morot"
- threeTwo = "Potatis"
- threeThree = "Gurka"
- elif c == 4:
- threeOne = "Potatis"
- threeTwo = "Gurka"
- threeThree = "Morot"
- elif c == 5:
- threeOne = "Gurka"
- threeTwo = "Morot"
- threeThree = "Potatis"
- elif c == 6:
- threeOne = "Morot"
- threeTwo = "Potatis"
- threeThree = "Gurka"
- elif c == 7:
- threeOne = "Potatis"
- threeTwo = "Gurka"
- threeThree = "Morot"
- elif c == 8:
- threeOne = "Gurka"
- threeTwo = "Morot"
- threeThree = "Potatis"
- elif c == 9:
- threeOne = "Morot"
- threeTwo = "Potatis"
- threeThree = "Gurka"
- elif c == 10:
- threeOne = "Coin"
- threeTwo = "Gurka"
- threeThree = "Morot"
- elif c == 11:
- threeOne = "Potatis"
- threeTwo = "Coin"
- threeThree = "Morot"
- elif c == 12:
- threeOne = "Potatis"
- threeTwo = "Gurka"
- threeThree = "Coin"
- print "The third row from left to right:",threeOne,",",threeTwo,",",threeThree
- print ""
- if (oneTwo and twoTwo and threeTwo) == "Potatis":
- print 'You win + 50 $'
- cash = cash + 50;
- start()
- elif (oneTwo and twoTwo and threeTwo) == "Gurka":
- print 'You win + 30 $'
- cash = cash + 30;
- start()
- elif (oneTwo and twoTwo and threeTwo) == "Morot":
- print 'You win + 40 $'
- cash = cash + 40;
- start()
- elif (oneOne and twoOne and threeOne) == "Potatis":
- print 'You win + 50 $'
- cash = cash + 50;
- start()
- elif (oneOne and twoOne and threeOne) == "Gurka":
- print 'You win + 30 $'
- cash = cash + 30;
- start()
- elif (oneOne and twoOne and threeOne) == "Morot":
- print 'You win + 40 $'
- cash = cash + 40;
- start()
- elif (oneThree and twoThree and threeThree) == "Potatis":
- print 'You win + 50 $'
- cash = cash + 50;
- start()
- elif (oneThree and twoThree and threeThree) == "Gurka":
- print 'You win + 30 $'
- cash = cash + 30;
- start()
- elif (oneThree and twoThree and threeThree) == "Morot":
- print 'You win + 40 $'
- cash = cash + 40;
- start()
- start()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement