-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtestHarness.py
More file actions
66 lines (59 loc) · 2.57 KB
/
testHarness.py
File metadata and controls
66 lines (59 loc) · 2.57 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
57
58
59
60
61
62
63
64
65
66
def getTests():
test1 = {1: ['Aces', [1, 2, 3, 4, 5]],
2: ['3-of-a-Kind', [2, 3, 2, 4, 2]],
3: ['3-of-a-Kind', [4, 2, 6, 4, 4]],
4: ['Fours', [4, 2, 6, 4, 4]],
5: ['Yahtzee', [6, 6, 6, 6, 6]],
6: ['Full-House', [3, 5, 5, 3, 3]],
7: ['Fives', [5, 2, 3, 5, 5]],
8: ['Chance', [4, 4, 5, 5, 2]],
9: ['Twos', [2, 2, 2, 3, 4]],
10: ['Fours', [4, 2, 1, 3, 4]],
11: ['Small-Straight', [4, 2, 1, 3, 4]],
12: ['4-of-a-Kind', [3, 3, 3, 3, 3]],
13: ['Large-Straight', [6, 4, 3, 2, 5]],
14: ['Sixes', [6, 4, 6, 2, 1]],
15: ['Threes', [3, 3, 3, 3, 3]]
}
test3 = {1: ['Aces', [1, 2, 3, 4, 5]],
2: ['Aces', [5, 5, 5, 5, 5]],
3: ['3-of-a-Kind', [5, 5, 5, 5, 5]],
4: ['3-of-a-Kind', [2, 2, 3, 4, 2]],
5: ['Twos', [2, 2, 3, 4, 2]],
6: ['Twos', [1, 1, 1, 1, 1]],
7: ['Yahtzee', [1, 1, 1, 1, 1]],
8: ['Yahtzee', [5, 5, 5, 5, 5]],
9: ['Full-House', [5, 5, 5, 5, 5]],
10: ['Full-House', [2, 2, 2, 2, 2]],
11: ['4-of-a-Kind', [2, 2, 2, 2, 2]],
12: ['4-of-a-Kind', [2, 5, 3, 1, 4]],
13: ['Small-Straight', [2, 5, 3, 1, 4]],
14: ['Twos', [3, 2, 3, 2, 3]],
15: ['Threes', [3, 2, 3, 2, 3]],
16: ['Threes', [6, 2, 4, 5, 3]],
17: ['Large-Straight', [6, 2, 4, 5, 3]],
18: ['Full-House', [4, 4, 3, 4, 3]],
19: ['Fours', [4, 4, 3, 4, 3]],
20: ['Aces', [1, 5, 1, 1, 5]],
21: ['Fives', [1, 5, 1, 1, 5]],
22: ['Full-House', [6, 5, 6, 6, 5]],
23: ['Sixes', [6, 5, 6, 6, 5]],
24: ['Large-Straight', [1, 2, 3, 4, 5]],
25: ['Chance', [1, 2, 3, 4, 5]],
}
test2 = {1: ['3-of-a-Kind', [1, 2, 1, 1, 5]],
2: ['Twos', [2, 2, 4, 5, 2]],
3: ['Small-Straight', [1, 5, 3, 2, 4]],
4: ['Full-House', [2, 2, 3, 3, 2]],
5: ['Aces', [1, 3, 1, 1, 1]],
6: ['Chance', [1, 3, 1, 2, 2]],
7: ['Fives', [5, 5, 4, 5, 2]],
8: ['4-of-a-Kind', [6, 6, 6, 5, 6]],
9: ['Fours', [4, 4, 4, 1, 4]],
10: ['Yahtzee', [6, 6, 6, 6, 6]],
11: ['Threes', [3, 3, 3, 3, 3]],
12: ['Large-Straight', [5, 1, 3, 4, 2]],
13: ['Sixes', [6, 4, 3, 6, 5]],
}
holder = [test1, test3, test2]
return holder