Clean up
This commit is contained in:
20
02/b.py
20
02/b.py
@@ -11,7 +11,7 @@ for l in f:
|
|||||||
result = 'draw'
|
result = 'draw'
|
||||||
v = choices[0]
|
v = choices[0]
|
||||||
o = choices[1].strip()
|
o = choices[1].strip()
|
||||||
|
|
||||||
round = 0
|
round = 0
|
||||||
round2 = 0
|
round2 = 0
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ for l in f:
|
|||||||
round2 = 1
|
round2 = 1
|
||||||
if o == 'Z':
|
if o == 'Z':
|
||||||
result = 'loss'
|
result = 'loss'
|
||||||
round2=2
|
round2 = 2
|
||||||
|
|
||||||
if v == 'B':
|
if v == 'B':
|
||||||
if o == 'X':
|
if o == 'X':
|
||||||
@@ -45,21 +45,19 @@ for l in f:
|
|||||||
if o == 'Z':
|
if o == 'Z':
|
||||||
round2 = 1
|
round2 = 1
|
||||||
|
|
||||||
if o == 'X':
|
|
||||||
round2 = round2 + 0
|
|
||||||
if o == 'Y':
|
if o == 'Y':
|
||||||
round2 = round2 + 3
|
round2 += 3
|
||||||
if o == 'Z':
|
if o == 'Z':
|
||||||
round2 = round2 + 6
|
round2 += 6
|
||||||
|
|
||||||
tot2 = tot2 + round2
|
tot2 += round2
|
||||||
|
|
||||||
if o == 'X':
|
if o == 'X':
|
||||||
round = round + 1
|
round += 1
|
||||||
if o == 'Y':
|
if o == 'Y':
|
||||||
round = round + 2
|
round += 2
|
||||||
if o == 'Z':
|
if o == 'Z':
|
||||||
round = round + 3
|
round += 3
|
||||||
|
|
||||||
res = 3
|
res = 3
|
||||||
if result == 'loss':
|
if result == 'loss':
|
||||||
@@ -67,7 +65,7 @@ for l in f:
|
|||||||
if result == 'win':
|
if result == 'win':
|
||||||
res = 6
|
res = 6
|
||||||
|
|
||||||
tot = tot + round + res
|
tot += round + res
|
||||||
|
|
||||||
print(tot)
|
print(tot)
|
||||||
print(tot2)
|
print(tot2)
|
||||||
|
|||||||
Reference in New Issue
Block a user