123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188 |
- # igrkart2
- clr
- minut += 5
- gs 'stat'
- if turn1 = 0:
- cla
- '<right><img src="images/casino/stavkacw.jpg"></right>'
- ' Please give me your bets, gentlemen.'
- act 'Make a bet':
- money -= deal
- turn1 = 1
- deal = input 'Enter the amount'
- if money < deal:
- msg 'You have enough money'
- gt 'igrkart2'
- elseif deal < 0:
- msg 'Wrong, try again.'
- gt 'igrkart1'
- elseif deal > 1000:
- msg 'The maximum rate of 1000 <b>₽</b>.'
- gt 'igrkart1'
- end
- gt 'igrkart2'
- end
- act 'Move away from the table':gt 'kazvar'
- end
- if turn1 = 1:
- cla
- nich = 0
- '<right><img src="images/casino/stavkacw.jpg"></right>'
- act 'Put another draw':
- turn1 = 2
- nich = 1
- if money < deal:
- msg 'You have enough money'
- turn1 = 2
- nich = 0
- gt 'igrkart2'
- else
- money -= deal
- end
- gt 'igrkart2'
- end
- act 'Continue without an additional rate':
- turn1 = 2
- nich = 0
- gt 'igrkart2'
- end
- end
- if turn1 = 2:
- cla
- '<right><img src="images/casino/cartcw.jpg"></right>'
- ' The dealer deals the cards:'
- '...'
- suit = rand(1, 4)
- number = rand(1, 13)
- $di_card[1] = $number[number] + $suit[suit]
- di_points = points[number]
- di_poi = number
- suit = rand(1, 4)
- number = rand(2, 14)
- $pl_card[1] = $number[number] + $suit[suit]
- pl_points = points[number]
- pl_poi = number
- wait 1000
- 'Map of dealer:'
- ' <<$di_card[1]>>'
- '__________________________'
- 'Player Maps:'
- ' <<$pl_card[1]>>'
- if di_poi > pl_poi:
- ' '
- 'Casinos won'
- act 'You lost':
- turn1 = 0
- gt 'igrkart2'
- end
- elseif di_poi < pl_poi:
- ' '
- 'You won'
- act 'You have won (<<2 * deal>> <b>₽</b>)':
- money += 2 * deal
- turn1 = 0
- gt 'igrkart2'
- end
- elseif di_poi = pl_poi:
- if nich = 1:
- ' '
- 'You won'
- act 'You have won (<<11 * deal>> <b>₽</b>)':
- money += 11 * deal
- turn1 = 0
- gt 'igrkart2'
- end
- else
- turn1 = 3
- gt 'igrkart2'
- end
- end
- end
- if turn1 = 3:
- act 'Continue to play':
- cla
- if money < deal:
- msg 'You have enough money'
- gt 'igrkart2'
- else
- money -= deal
- end
- '<right><img src="images/casino/cartcw.jpg"></right>'
- ' The dealer deals the cards:'
- '...'
- suit = rand(1, 4)
- number = rand(1, 13)
- $di_card[2] = $number[number] + $suit[suit]
- di_points = points[number]
- di_poi = number
- suit = rand(1, 4)
- number = rand(2, 14)
- $pl_card[2] = $number[number] + $suit[suit]
- pl_points = points[number]
- pl_poi = number
- 'Map of dealer:'
- ' <<$di_card[1]>>'
- ' <<$di_card[2]>>'
- '__________________________'
- 'Player Maps:'
- ' <<$pl_card[1]>>'
- ' <<$pl_card[2]>>'
- if di_poi > pl_poi:
- ' '
- 'Casinos won'
- act 'You lost':
- turn1 = 0
- gt 'igrkart2'
- end
- elseif di_poi < pl_poi:
- ' '
- 'You won'
- act 'You have won (<<4 * deal>> <b>₽</b>)':
- money += 4 * deal
- turn1 = 0
- gt 'igrkart2'
- end
- elseif di_poi = pl_poi:
- ' '
- 'Again draw'
- act 'Pick up (<<3 * deal>> <b>₽</b>)':
- money += 3 * deal
- turn1 = 0
- gt 'igrkart2'
- end
- end
- end
- act 'Pick up half your bet':
- if deal mod 2 = 1:deal += 1
- money += deal / 2
- gt 'igrkart2'
- end
- end
- --- igrkart2 ---------------------------------
|