-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtests.py
More file actions
56 lines (56 loc) · 1.31 KB
/
Copy pathtests.py
File metadata and controls
56 lines (56 loc) · 1.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# from blackjack_run import *
#
#
# hand1 = Hand()
# hand1.bet_amount = 800
#
# hand2 = Hand()
# hand2.bet_amount = 800
#
# player1 = Player()
# player1.hands.append(hand1)
# player1.balance = player1.balance - hand1.bet_amount
#
# player2 = Player()
# player2.hands.append(hand2)
# player2.balance = player2.balance - hand2.bet_amount
#
# dealer_hand = Hand()
# dealer = Dealer(dealer_hand)
#
#
# def test_check_surrender():
#
# deck = get_cards_deck(1)
# shuffle(deck)
#
# hand1.cards = [{'value':5,'suit':'Hearts'},{'value':5,'suit':'Diamonds'}]
#
# hand2.cards = [{'value':4,'suit':'Hearts'},{'value':10,'suit':'Diamonds'}]
#
# dealer_hand.cards = [{'value':10,'suit':'Hearts'},{'value':'Ace','suit':'Diamonds'}]
#
# dealer_visible_card = dealer_hand.cards[0]
#
# print("\nDealer visible card as : {} ".format(format_card(dealer_visible_card)))
#
# players = [player1,player2]
#
# deck = [d for d in deck if d not in hand1.cards and d not in hand2.cards and d not in dealer_hand.cards]
#
# start_game(players,dealer,deck)
#
#
# def test_get_cards_deck():
#
# num_decks= 2
# cards = get_cards_deck(num_decks)
#
# count_2_club = [card for card in cards if card['value']==2 and card['suit']=='Clubs']
#
# print(len(count_2_club))
#
#
# # test_get_cards_deck()
#
# test_check_surrender()