authors1 944 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # authors1
  2. *pl 'Rules of the game are very simple:toss a coin 10 rubles and pull lever. jackpot 100 thousand rubles.'
  3. *p '<center><img src="images/casino/avt.jpg"></center>'
  4. act 'pull the lever':
  5. if money >= 10:
  6. x_10 = rand(1, 1000)
  7. set money -= 10
  8. if x_10 = 1000:
  9. set money += 100000
  10. msg 'You won the jackpot! Congratulations!'
  11. end
  12. if x_10<1000 and x_10 >= 850:
  13. set money += 20
  14. msg 'Congratulations, you win 20 rubles'
  15. end
  16. if x_10 >= 500 and x_10 < 850:
  17. set money += 10
  18. msg 'congratulations, you win 10 rubles'
  19. end
  20. if x_10 < 500:
  21. set minut = minut+10
  22. msg 'Alas you lose, try again'
  23. end
  24. clr
  25. gt 'authors1'
  26. else
  27. msg 'And how are you going to play without money? Come back when you find the necessary amount'
  28. gt 'authors1'
  29. end
  30. end
  31. act 'Back to the hall':gt 'igravt'
  32. clr
  33. gs 'stat'
  34. set minut = minut + 10
  35. !!pl 'In the bag:<<money>> RUB.'
  36. --- authors1 ---------------------------------