Singles tennis, in 3D, played to the ITF Rules of Tennis. This is an independent reimplementation of the sport by an outside author. It is not affiliated with, endorsed by, or connected to the International Tennis Federation or any tennis organisation. Tennis is a sport in the public domain; the ITF is its governing body and the author of the rules this game follows. The rules are quoted here for accuracy and credited below.
Everything is at the sizes Rule 1 gives: the court is 23.77 m long and 8.23 m wide for singles (10.97 m for doubles, whose alley is drawn but not played). The net is 0.914 m at the centre and 1.07 m at the singles sticks, which stand 0.914 m outside the singles court. The servicelines are 6.40 m from the net and run between the singles sidelines.
Rule 1 says “All court measurements shall be made to the outside of the lines” and Rule 12 says “If a ball touches a line, it is regarded as touching the court bounded by that line.” So the in/out boundary here is the outer edge of each line and touching it is in. A ball landing on the centre serviceline is in both service courts, because that line bounds both.
The ball is the ITF's own reference ball: 57.6 g and 6.60 cm across. Its bounciness was not chosen. Appendix I requires a Type 2 ball to rebound between 135 cm and 147 cm, and the ITF test method ITF TB 04/01 drops it from 254 cm — measuring both the drop and the rebound to the bottom of the ball. That test was simulated, with air drag, at the ITF's own laboratory conditions (20 °C, 60 % humidity, 102 kPa), and the coefficient of restitution solved for: 0.7745. Ignoring drag would have given 0.745, which rebounds only 130.8 cm and would fail ITF approval.
Drag and the Magnus force use published measurements, not tuning: a drag coefficient of 0.55 for a new ball, rising with spin, and a lift coefficient that never exceeds 0.5. Held out from that fitting, the literature also says a ball served at any speed lands at about 75 % of its serve speed; this engine gives 72.5 % across 30–60 m/s, and the gap is traced to the source quoting two different drag coefficients on the same page. See CREDITS.txt for the full account.
Rule 5.a: Love, 15, 30, 40, game, with the server's score called first; at three points all the score is Deuce, and after Deuce you need two consecutive points. Rule 6.b: six games with a margin of two wins a set, and at six games all a tie-break is played. Rule 5.b: the tie-break is first to seven with a margin of two, the opener serves one point and then each player serves two, and Rule 10 changes ends every six points and after every odd game of a set. Rule 17 starts every game and every tie-break from the right half and alternates.
Rule 6 requires an event to announce how its final set is played, so the Match menu offers the choices and labels each one: the ITF tie-break set, the Rule 6.a advantage set, the 10-point tie-break at 6–6 used at the Grand Slams since 2022, and the Appendix V match tie-break. “No-Ad” scoring is also Appendix V.
Rules and all quoted figures: ITF Rules of Tennis 2023 and ITF Approved Tennis Balls, Classified Surfaces & Recognised Courts, both published by the International Tennis Federation. Aerodynamics: Rod Cross, Ball Trajectories (University of Sydney), quoting the measurements of Štěpánek. Full citations, and a list of every reconstructed number, are in CREDITS.txt.