redundant
This commit is contained in:
parent
8af654353b
commit
b666aa803b
2 changed files with 0 additions and 5 deletions
|
@ -18,9 +18,6 @@ def main():
|
||||||
|
|
||||||
while game.active:
|
while game.active:
|
||||||
ui.update(game)
|
ui.update(game)
|
||||||
for player in game.players:
|
|
||||||
if player.blackjack(game):
|
|
||||||
game.active = False
|
|
||||||
|
|
||||||
if game.active:
|
if game.active:
|
||||||
match ui.player_move(deck).lower():
|
match ui.player_move(deck).lower():
|
||||||
|
|
|
@ -6,7 +6,6 @@ class GameMaster:
|
||||||
self.players = [Player('Dealer'), Player('Player')] # 5-9 seats
|
self.players = [Player('Dealer'), Player('Player')] # 5-9 seats
|
||||||
self.dealer = self.players[0]
|
self.dealer = self.players[0]
|
||||||
self.player = self.players[1]
|
self.player = self.players[1]
|
||||||
self.blackjack = False
|
|
||||||
|
|
||||||
def score(self):
|
def score(self):
|
||||||
status = 'Error'
|
status = 'Error'
|
||||||
|
@ -27,7 +26,6 @@ class GameMaster:
|
||||||
status = player.name + ' Bust!'
|
status = player.name + ' Bust!'
|
||||||
elif player.blackjack(self):
|
elif player.blackjack(self):
|
||||||
self.active = False
|
self.active = False
|
||||||
self.blackjack = True
|
|
||||||
status = player.name + ' has Blackjack!'
|
status = player.name + ' has Blackjack!'
|
||||||
|
|
||||||
return status
|
return status
|
||||||
|
|
Loading…
Add table
Reference in a new issue