Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Tennis Skill Level:
- -start at 2
- -level up increases by 1
- Gameplay:
- choose random number between 1 and skill level
- same with opponent's; whoever's is higher wins the point
- repeat until match is over
- multiplier between 1 and 2 to server
- if server's number is 2x opponent then ace
- if opponent's number is 2x server's then double fault
- if win match, chance to level up
- chance is 1/level
- if fail, then increase chance to level up by random number
- player_name
- lvl opplvl incr/decr_opplvl is_in_game
- 0: 0 1: 15 2: 30 3: 40 4: deuce 5: disadv 6: adv
- average points per set 60
- average games per set 9.5
- number of aces per game 0 - 1.2
- games per double fault 5
- number of double faults per game 1/5
- average points per game: 60/9.5 = 6.3
- probability of ace: 0-1.2/6.3 = 0.1
- probability of double fault 1/5/6.3 = 0.03
- rally lengths:
- 0-4: 0.7 2,3,4: 0.7-0.1-0.03 = 0.57 2,3,4 each: 0.57/3 = 0.19
- 5-8: 0.2 5,6,7,8 each: 0.05
- 9+: 0.1 random number between 9 and 50
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement