Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def f_degats_infliges_par_joueur_1(tour):
- if (tour==1):
- return 10*(1+12/100)
- degats_inflige_par_joueur_j1=10
- for i in range(1,tour):
- degats_inflige_par_joueur_j1 = degats_inflige_par_joueur_j1+ degat_inflige_par_joueur1*(1+12/100) - 4
- return degats_inflige_par_joueur_j1
- def f_degats_infliges_par_joueur_2(tour):
- degats_inflige_par_joueur_j2=10
- for i in range(1,tour):
- degats_inflige_par_joueur2 = degats_inflige_par_joueur2 + degat_inflige_par_joueur2 *(1-8/100) +7
- return degats_inflige_par_joueur_j2
- def main() :
- tour=0
- While (nombre_points_de_vie_joueur_2 > 0) et (nombre_points_de_vie_joueur_1 > 0) :
- tour=tour+1
- nombre_de_points_de_vie_joueur1=200-fdegat_infliges_par_joueur2(tour)
- nombre_de_points_de_vie_joueur2=200-fdegat_infliges_par_joueur1(tour)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement