예제 #1
0
 def setup_player_scaffolding(self):
     player = Player()
     player.bet = Decimal(1.00)
     player.money = Decimal(1.00)
     player.games_played = 4
     player.wins = 1
     player.win_percentage = 0.0
     return player
    def setup_dealer_tie_scenario(self):
        player = Player()
        player.bet = Decimal(1.00)
        player.money = Decimal(1.00)
        
        card1 = Card('Hearts', 'Jack')
        card2 = Card('Hearts', 'King')
        dealer_hand = Hand()
        player_hand = Hand()
        dealer_hand.add_card(card1)
        player_hand.add_card(card2)

        return player, player_hand, dealer_hand
예제 #3
0
    def setup_dealer_blackjack(self):
        player = Player()
        player.bet = Decimal(1.00)
        player.money = Decimal(1.00)
        
        card1 = Card('Hearts', 'Jack')
        card2 = Card('Hearts', 'Ace')
        dealer_hand = Hand()
        player_hand = Hand()
        dealer_hand.add_card(card1)
        dealer_hand.add_card(card2)

        return player, player_hand, dealer_hand