faileure
This commit is contained in:
24
02/b.py
24
02/b.py
@@ -17,9 +17,31 @@ for l in f:
|
|||||||
result = 'win'
|
result = 'win'
|
||||||
case 'Z':
|
case 'Z':
|
||||||
result = 'loss'
|
result = 'loss'
|
||||||
|
case 'B':
|
||||||
|
match choices[1]:
|
||||||
|
case 'X':
|
||||||
|
result = 'loss'
|
||||||
|
case 'Z':
|
||||||
|
result = 'win'
|
||||||
|
case 'C':
|
||||||
|
match choices[1]:
|
||||||
|
case 'X':
|
||||||
|
result = 'win'
|
||||||
|
case 'Y':
|
||||||
|
result = 'loss'
|
||||||
|
value = selection.get(choices[1])
|
||||||
|
|
||||||
|
match choices[1]:
|
||||||
|
case 'X':
|
||||||
|
tot = tot + 1
|
||||||
|
case 'Y':
|
||||||
|
tot = tot + 2
|
||||||
|
case 'Z':
|
||||||
|
tot = tot + 3
|
||||||
|
|
||||||
tot = tot + selection.get(choices[1])
|
|
||||||
if result == 'draw':
|
if result == 'draw':
|
||||||
tot = tot + 3
|
tot = tot + 3
|
||||||
if result == 'win':
|
if result == 'win':
|
||||||
tot = tot + 6
|
tot = tot + 6
|
||||||
|
|
||||||
|
print(tot)
|
||||||
|
|||||||
Reference in New Issue
Block a user