-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.py
75 lines (68 loc) · 2.24 KB
/
test.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
64
65
66
67
68
69
70
71
72
73
74
75
from History import History
h = History()
h.clear_game_database()
# fresh = True
# if fresh:
# h.clear_game_database()
# h.clear_roster()
# h.add_player("andrew", playerID="andrew01")
# h.add_player("erin", playerID="erin01")
# h.add_player("jesse", playerID="jesse01")
# h.add_player("sierra", playerID="sierra01")
# h.add_player("bob", playerID="bob01")
# h.add_player("alice", playerID="alice01")
# h.add_player("john", playerID="john01")
# h.add_player("dean", playerID="dean01")
# h.add_player("jeff", playerID="jeff01")
# h.add_player("abed", playerID="abed01")
# h.add_player("troy", playerID="troy01")
# h.add_player("britta", playerID="britta01")
# h.add_player("annie", playerID="annie01")
# h.add_player("pierce", playerID="pierce01")
# r = {}
# i = 1
# for player in h.roster:
# r[i] = player
# i += 1
# h.suppress = True
# for j in range(100):
# p1 = r[randint(1, 15)]
# p2 = r[randint(1, 15)]
# t1s = randint(1, 22)
# t2s = randint(1, 22)
# while t1s == t2s:
# t2s = randint(1, 22)
# h.add_game([p1], [p2], t1s, t2s)
# h.print_game_database()
# h.print_roster()
#
# h.roster['andrew01'].skill_by_day['2019-03-11'] = 300
# h.roster['andrew01'].skill_by_day['2019-03-12'] = 400
# h.roster['andrew01'].skill_by_day['2019-03-13'] = 600
# print(h.roster['andrew01'].skill_by_day)
#
# h.roster['erin01'].skill_by_day['2019-03-11'] = 200
# h.roster['erin01'].skill_by_day['2019-03-12'] = 500
# h.roster['erin01'].skill_by_day['2019-03-13'] = 900
#
# h.roster['abed01'].skill_by_day['2019-03-11'] = 700
# h.roster['abed01'].skill_by_day['2019-03-13'] = 750
#
# pkl.dump(h.roster, open(h.roster_name, "wb"))
#
#
# tournament = False
# if tournament:
# h.tournament([["andrew01"],
# ["erin01"],
# ["jesse01"],
# ["bob01"],
# ["alice01"],
# ["john01"],
# ["dean01"],
# ["jeff01"],
# ["abed01"],
# ["troy01"],
# ["britta01"],
# ["annie01"],
# ["pierce01"]])