Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. def f_degats_infliges_par_joueur_1(tour):
  2. degats_inflige_par_joueur_j1=10
  3. for i in range(1,tour):
  4. degats_inflige_par_joueur_j1 = degats_inflige_par_joueur_j1+ degat_inflige_par_joueur1*(1+12/100) - 4
  5. return degats_inflige_par_joueur_j1
  6.  
  7. def f_degats_infliges_par_joueur_2(tour):
  8. degats_inflige_par_joueur_j2=10
  9. for i in range(1,tour):
  10. degats_inflige_par_joueur2 = degats_inflige_par_joueur2 + degat_inflige_par_joueur2 *(1-8/100) +7
  11. return degats_inflige_par_joueur_j2
  12.  
  13. def main() :
  14. tour=0 
  15. While (nombre_points_de_vie_joueur_2 > 0) et (nombre_points_de_vie_joueur_1 > 0) :
  16. tour=tour+1
  17. nombre_de_points_de_vie_joueur1=200-fdegat_infliges_par_joueur2(tour)
  18. nombre_de_points_de_vie_joueur2=200-fdegat_infliges_par_joueur1(tour)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement