1
0

igrkart2 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. # igrkart2
  2. clr
  3. gs 'stat'
  4. set minut += 5
  5. if turn1 = 0:
  6. cla
  7. '<right><img src="images/casino/stavkacw.jpg"></right>'
  8. ' Please give me your bets, gentlemen.'
  9. act 'IPod':
  10. deal = input 'Enter the amount'
  11. if money < deal:
  12. msg 'You have enough money'
  13. gt 'igrkart2'
  14. end
  15. if deal < 0:
  16. msg 'Wrong, try again.'
  17. gt 'igrkart1'
  18. end
  19. if deal > 1000:
  20. msg 'The maximum rate of 1000 rubles.'
  21. gt 'igrkart1'
  22. end
  23. set money -= deal
  24. turn1 = 1
  25. gt 'igrkart2'
  26. end
  27. act 'Move away from the table':gt 'kazvar'
  28. end
  29. if turn1 = 1:
  30. cla
  31. '<right><img src="images/casino/stavkacw.jpg"></right>'
  32. nich = 0
  33. act 'Put another draw':
  34. if money < deal:
  35. msg 'You have enough money'
  36. turn1 = 2
  37. nich = 0
  38. gt 'igrkart2'
  39. end
  40. set money -= deal
  41. turn1 = 2
  42. nich = 1
  43. gt 'igrkart2'
  44. end
  45. act 'Continue without an additional rate':
  46. turn1 = 2
  47. nich = 0
  48. gt 'igrkart2'
  49. end
  50. end
  51. if turn1 = 2:
  52. cla
  53. '<right><img src="images/casino/cartcw.jpg"></right>'
  54. ' The dealer deals the cards:'
  55. '...'
  56. suit = rand(1, 4)
  57. number = rand(1, 13)
  58. $di_card[1] = $number[number] + $suit[suit]
  59. di_points = points[number]
  60. di_poi = number
  61. suit = rand(1, 4)
  62. number = rand(2, 14)
  63. $pl_card[1] = $number[number] + $suit[suit]
  64. pl_points = points[number]
  65. pl_poi = number
  66. wait 1000
  67. 'Map of dealer:'
  68. '  <<$di_card[1]>>'
  69. '__________________________'
  70. 'Player Maps:'
  71. '  <<$pl_card[1]>>'
  72. if di_poi > pl_poi:
  73. ' '
  74. 'Casinos won'
  75. act 'You lost':
  76. turn1 = 0
  77. gt 'igrkart2'
  78. end
  79. end
  80. if di_poi < pl_poi:
  81. ' '
  82. 'You won'
  83. act 'You have won (<<2 * deal>> rubles)':
  84. set money += 2 * deal
  85. turn1 = 0
  86. gt 'igrkart2'
  87. end
  88. end
  89. if di_poi = pl_poi:
  90. if nich = 1:
  91. ' '
  92. 'You won'
  93. act 'You have won (<<11 * deal>> rubles)':
  94. set money += 11 * deal
  95. turn1 = 0
  96. gt 'igrkart2'
  97. end
  98. else
  99. turn1 = 3
  100. gt 'igrkart2'
  101. end
  102. end
  103. end
  104. if turn1 = 3:
  105. act 'Continue to play':
  106. if money < deal:
  107. msg 'You have enough money'
  108. gt 'igrkart2'
  109. end
  110. set money -= deal
  111. cla
  112. '<right><img src="images/casino/cartcw.jpg"></right>'
  113. ' The dealer deals the cards:'
  114. '...'
  115. suit = rand(1, 4)
  116. number = rand(1, 13)
  117. $di_card[2] = $number[number] + $suit[suit]
  118. di_points = points[number]
  119. di_poi = number
  120. suit = rand(1, 4)
  121. number = rand(2, 14)
  122. $pl_card[2] = $number[number] + $suit[suit]
  123. pl_points = points[number]
  124. pl_poi = number
  125. wait 1000
  126. 'Map of dealer:'
  127. '  <<$di_card[1]>>'
  128. '  <<$di_card[2]>>'
  129. '__________________________'
  130. 'Player Maps:'
  131. '  <<$pl_card[1]>>'
  132. '  <<$pl_card[2]>>'
  133. if di_poi > pl_poi:
  134. ' '
  135. 'Casinos won'
  136. act 'You lost':
  137. turn1 = 0
  138. gt 'igrkart2'
  139. end
  140. end
  141. if di_poi < pl_poi:
  142. ' '
  143. 'You won'
  144. act 'You have won (<<4 * deal>> rubles)':
  145. set money += 4 * deal
  146. turn1 = 0
  147. gt 'igrkart2'
  148. end
  149. end
  150. if di_poi = pl_poi:
  151. ' '
  152. 'Again draw'
  153. act 'Pick up (<<3 * deal>> rubles)':
  154. set money += 3 * deal
  155. turn1 = 0
  156. gt 'igrkart2'
  157. end
  158. end
  159. end
  160. act 'Pick up half your bet':
  161. if deal mod 2 = 1:deal = deal + 1
  162. set money += deal/2
  163. gt 'igrkart2'
  164. end
  165. end
  166. --- igrkart2 ---------------------------------