|
@ -11,14 +11,12 @@ def totalPoints (joueur): |
|
|
if lst_elements[1]=="tir-reussi": |
|
|
if lst_elements[1]=="tir-reussi": |
|
|
x = lst_elements[2] |
|
|
x = lst_elements[2] |
|
|
y = lst_elements[3] |
|
|
y = lst_elements[3] |
|
|
#print(lst_elements[0],lst_elements[1],x,y) |
|
|
|
|
|
total_pts = total_pts + points(x,y) |
|
|
total_pts = total_pts + points(x,y) |
|
|
#print(points(x,y)) |
|
|
|
|
|
|
|
|
|
|
|
return total_pts |
|
|
return total_pts |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"""tests""" |
|
|
"""tests""" |
|
|
|
|
|
""" |
|
|
for i in range (1,11): |
|
|
for i in range (1,11): |
|
|
joueur = "J" + str(i) |
|
|
joueur = "J" + str(i) |
|
|
print(joueur,totalPoints(joueur)) |
|
|
print(joueur,totalPoints(joueur)) |
|
@ -26,3 +24,4 @@ for i in range (1,11): |
|
|
for i in range (1,11): |
|
|
for i in range (1,11): |
|
|
joueur = "J" + str(i) + "V" |
|
|
joueur = "J" + str(i) + "V" |
|
|
print(joueur,totalPoints(joueur)) |
|
|
print(joueur,totalPoints(joueur)) |
|
|
|
|
|
""" |