-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_hand.py
63 lines (51 loc) · 1.25 KB
/
test_hand.py
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
57
58
59
60
61
62
63
#Imports
from entities import *
from config import *
#Initialise variables
cardRack = Dealer()
callStation = Player()
#test cases
print('Sorted')
print('------\n')
for subgroup in TSORT:
for case in subgroup:
if isinstance(case, str):
print(case)
else:
cardRack._createHand(case)
print('')
print('Unsorted')
print('--------\n')
for unsubgroup in TUNSORT:
for uncase in unsubgroup:
if isinstance(uncase, str):
print(uncase)
else:
cardRack._createHand(uncase)
print('')
print('Pair and draw')
print('-------------\n')
for pdgroup in TPSORT:
for pdcase in pdgroup:
if isinstance(pdcase, str):
print(pdcase)
else:
callStation.setHand(cardRack._createHand(pdcase))
print('')
print('Fake draws')
print('----------\n')
for fake in FSTRFL:
if isinstance(fake, str):
print(fake)
else:
callStation.setHand(cardRack._createHand(fake))
print('')
print('Drawing hands')
print('-------------\n')
for dgroup in TDSORT:
for dcase in dgroup:
if isinstance(dcase, str):
print(dcase)
else:
callStation.setHand(cardRack._createHand(dcase))
print('')