forked from CoreyMSchafer/code_snippets
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsnippets.txt
More file actions
40 lines (38 loc) · 837 Bytes
/
Copy pathsnippets.txt
File metadata and controls
40 lines (38 loc) · 837 Bytes
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
times_won = {
'5+P': 0,
'5': 0,
'4+P': 0,
'4': 0,
'3+P': 0,
'3': 0,
'2+P': 0,
'1+P': 0,
'P': 0,
'0': 0
}
------------------------
elif white_matches == 4:
if power_match:
win_amt = 50_000
times_won['4+P'] += 1
else:
win_amt = 100
times_won['4'] += 1
elif white_matches == 3:
if power_match:
win_amt = 100
times_won['3+P'] += 1
else:
win_amt = 7
times_won['3'] += 1
elif white_matches == 2 and power_match:
win_amt = 7
times_won['2+P'] += 1
elif white_matches == 1 and power_match:
win_amt = 4
times_won['1+P'] += 1
elif power_match:
win_amt = 4
times_won['P'] += 1
else:
times_won['0'] += 1