Форум сайта python.su
0
import random chips = int() blind_s = input('Small Blind is:') blind_b = input('Big Blind is:') chips = input('Starter Chips:') def IventPlayerChips(): print('Your Chips:',chips) IventPlayerChips() def IventMoveChoice(): first = random.randint(1, 2) if first == 1: print('You put' ,blind_s,' chips') chips-=blind_s if first == 2: print('You put',blind_b,'chips') chips-=blind_b IventMoveChoice()
Отредактировано Tom228 (Авг. 14, 2017 00:41:09)
Офлайн
35
Попробуйте так
def IventMoveChoice(): global chips first = random.randint(1, 2)
Офлайн
0
Спасибо, разобрался
Офлайн