authors2 873 B

12345678910111213141516171819202122232425262728293031323334353637
  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 <b>₽</b> and pull lever. Jackpot million <b>₽</b>.'
  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 <b>₽</b>'
  18. elseif x_10 > 500 and x_10 <= 850:
  19. money += 100
  20. msg 'congratulations, you have won 100 <b>₽</b>'
  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 ---------------------------------