mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 07:10:42 -08:00
Clean Code: Apply flake8-simplify to Python
Also flake8-comprehensions which was added to the CI For flake8-simplify, there are a few false-positives, e.g. https://github.com/MartinThoma/flake8-simplify/issues/115
This commit is contained in:
@@ -290,10 +290,8 @@ class Game:
|
||||
print(player_hands_message)
|
||||
print(f"{player.get_name()} Hand:\t{player.hand_as_string(True)}")
|
||||
|
||||
if PlayerType.Player == player.player_type:
|
||||
# player isn't the dealer
|
||||
if player.bet == 0: # player is out of money
|
||||
break
|
||||
if PlayerType.Player == player.player_type and player.bet == 0:
|
||||
break
|
||||
|
||||
# play through turn
|
||||
# check their hand value for a blackjack(21) or bust
|
||||
|
||||
Reference in New Issue
Block a user