Beispiel #1
0
 def test_is_busted(cls, busted_hand: BlackjackHand):
     assert busted_hand.is_busted()
Beispiel #2
0
 def get_action(self, game: GameDriver, hand: BlackjackHand):
     if hand.is_busted():
         return BlackjackAction.Bust
     return self.strategy.get_action(game, hand)