1
0

authors2 856 B

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