io do io things
This commit is contained in:
parent
8076cb6b15
commit
705b5a849f
2 changed files with 4 additions and 3 deletions
|
@ -20,9 +20,7 @@ def main():
|
|||
ui.update(game)
|
||||
|
||||
if game.active:
|
||||
user_input = input(str(deck.count()) + ' cards left in deck.\n[H]it or [S]tand? ')
|
||||
|
||||
match user_input.lower():
|
||||
match ui.player_move(deck).lower():
|
||||
case 'y':
|
||||
game.active = False
|
||||
case 'q':
|
||||
|
|
|
@ -121,3 +121,6 @@ o8YooP' 8 .oPYo. .oPYo. 8 .o 8 .oPYo. .oPYo. 8 .o
|
|||
return False
|
||||
case _:
|
||||
return True
|
||||
|
||||
def player_move(self, deck):
|
||||
return input(str(deck.count()) + ' cards left in deck.\n[H]it or [S]tand? ')
|
||||
|
|
Loading…
Add table
Reference in a new issue