In this thread I will reveal the workings of the match simulation program and also any updates to it.
---
Match Simulation v0.2
Relevant stats: SRV, RTN, ATT, DEF, STA
On serve, base point win chance of server [1]: 65%
This is adjusted based on server [1]'s SRV stat and returner [2]'s RTN stat: 65% + (SRV[1] - RTN[2])/2
Point win chances are further adjusted using players' ATT and DEF stats; differences are taken (between both ATTs and both DEFs) and divided by 4.
STA's effect is more complicated. Average point length is calculated using the difference between both players' DEFs and both players' ATTs (more defensive play results in longer rallies). The longer the average point, the faster a player tires.
TRD (tired) is set to 100 at the start of the match for both players. It is increased by (2.5/STA) each stroke. Each point, the point win chance of players is adjusted by the difference between TRD[1] and TRD[2].
So far, STS (status) and PSF (preferred surface) have no effect on gameplay.
---
That's it so far. Criticism, ideas, etc. are always welcome!