|
|
@ -16,14 +16,15 @@ def manque (joueur): |
|
|
|
pass |
|
|
|
|
|
|
|
else: |
|
|
|
action = lst_elements[1].split('-') |
|
|
|
#print(action) |
|
|
|
if action[1] == "manque": |
|
|
|
action = lst_elements[1].split('-') |
|
|
|
if action[1] == "manque" or action[1] == "rat": |
|
|
|
nbr_act_manque = nbr_act_manque + 1 |
|
|
|
|
|
|
|
return nbr_act_manque |
|
|
|
|
|
|
|
|
|
|
|
""""tests pour la fonction""" |
|
|
|
|
|
|
|
for i in range (1,11): |
|
|
|
joueur = "J" + str(i) |
|
|
|
print(joueur,manque(joueur)) |
|
|
|