Advertisement
Guest User

Untitled

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