Advertisement
TwentyEight

T3NN15 G4M3

Jan 28th, 2020
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. Tennis Skill Level:
  2. -start at 2
  3. -level up increases by 1
  4.  
  5. Gameplay:
  6. choose random number between 1 and skill level
  7. same with opponent's; whoever's is higher wins the point
  8. repeat until match is over
  9.  
  10. multiplier between 1 and 2 to server
  11. if server's number is 2x opponent then ace
  12. if opponent's number is 2x server's then double fault
  13.  
  14. if win match, chance to level up
  15. chance is 1/level
  16. if fail, then increase chance to level up by random number
  17.  
  18. player_name
  19. lvl opplvl incr/decr_opplvl is_in_game
  20.  
  21. 0: 0 1: 15 2: 30 3: 40 4: deuce 5: disadv 6: adv
  22.  
  23. average points per set 60
  24. average games per set 9.5
  25. number of aces per game 0 - 1.2
  26. games per double fault 5
  27.  
  28. number of double faults per game 1/5
  29. average points per game: 60/9.5 = 6.3
  30.  
  31. probability of ace: 0-1.2/6.3 = 0.1
  32. probability of double fault 1/5/6.3 = 0.03
  33.  
  34. rally lengths:
  35. 0-4: 0.7 2,3,4: 0.7-0.1-0.03 = 0.57 2,3,4 each: 0.57/3 = 0.19
  36. 5-8: 0.2 5,6,7,8 each: 0.05
  37. 9+: 0.1 random number between 9 and 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement