Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import random
- print('Крутите барабан')
- def super_bot() :
- botcurrentPoint = 0
- while botcurrentPoint <=17 :
- botcurrentPoint += random.randint(2,11)
- if botcurrentPoint > 21:
- print('Вау как я проиграл!!(глупый бот)')
- print('Счет бота: ', botcurrentPoint)
- return botcurrentPoint
- continueGame = True
- totalAmount = 0
- while continueGame == True:
- currentPoint = random.randint(2,11)
- totalAmount += currentPoint
- print('Текущая карта:', currentPoint)
- print('Текущее количество очков:', totalAmount)
- if totalAmount >= 21:
- continueGame = False
- else:
- answer = input('Хотите ли Вы взять еще карту?')
- if answer == 'Да':
- continueGame = True
- else:
- continueGame = False
- botAmount = super_bot()
- if totalAmount == 21:
- print('Press f to pay respect')
- elif totalAmount > 21:
- print('Японский городовой этого казино!Как в казино колода в другом порядке разложена может быть!')
- elif botAmount > totalAmount:
- print('Ты проиграл, мешок с костями')
Advertisement
Add Comment
Please, Sign In to add comment