I'm making a tennis rally simulator app

BetaServe

Professional
Hey guys it's been a while.
I got bored on the weekend so I coded this app which allows you to visually simulate rally points between 2 players by providing minimal textual description of their shots.

What I want to eventually achieve: Think of the stats you see on TV (ESPN, Fox Sport,...) during/after a match where you can see all the stats and simulation of previous played points, I want to do the same but for rec players. People post their match video on Youtube, I input in the shots then the tool will automatically output the simulation and extract the stats. The stats also include interesting answers to questions like "In what scenario player A loses the most (the answer could be "when opponent hits to their backhand")".

Link: https://tennis-rally-simulator.herokuapp.com/ (doesn't look good on mobile screens for now)

How it works: In the text box, you type in a sequence of text lines to describe how 2 people hit back and forth.
Each line describes a shot (hit by either player 1 or player 2) using 3 attributes: 1. Shot type (slice, topspin, neutral), 2. Direction (left,right, ), 3. Depth(short, deep,..).
For each of these attributes, only the values shown in the green box are allowed.

An example of a shot would be: "slice, right, deep" => this simply means a slice shot to the right and lands deep on the other side of the court.

So in the text box, if you input 3 lines:
topspin, farLeft, deep (-> this means player1 is hitting a topspin shot to the far left that lands deep on the other side)
slice, middle, short (-> this means player2 is hitting back the previous shot with a short slice down the middle)
slice, right, deep (-> this means player1 is responding back with a deep slice shot to the right)

For now, player 1 always starts first and the players' starting positions are fixed initially. Also the last shot is assumed to be a winner.

Other use cases:
- Coaches/Youtubers use this as a teaching tool to quickly construct visual rallies to explain their points.
- Rec players discuss and share tactics with others visually.
- (what else?)
 
Last edited:

BetaServe

Professional
I'm aware it's missing a lot of things. Just wanted to built a quick & minimal version to show a demo. If people don't think this is crap and find this interesting enough I'd maybe continue adding these functionalities later:
- serve, volley, recovery steps with animations and other important shot attributes like shot power, shot type (forehand or backhand), etc.
- simulate a whole match with all the rally points and automatically display useful statistics (number of UEs, winners, aces, common patterns, etc.) either after match or in real time/during match.
 

AnyPUG

Hall of Fame
Great idea - the app would be real useful if you add a few features based on sound -

1 Say spllt when the player is supposed to split step during the rally.
2 Say recover and mention the number of cross over and shuffle steps after each shot
3 Cues for inhale and exhale to promote good rythmic breathing
4 Other verbal instructions for bending the knee when replying to a slice etc would be great too.

Good start and hope to see a feature rich app soon !
 

BetaServe

Professional
Great idea - the app would be real useful if you add a few features based on sound -

1 Say spllt when the player is supposed to split step during the rally.
2 Say recover and mention the number of cross over and shuffle steps after each shot
3 Cues for inhale and exhale to promote good rythmic breathing
4 Other verbal instructions for bending the knee when replying to a slice etc would be great too.

Good start and hope to see a feature rich app soon !

I see that you have a different vision and I think that's a cool idea. But I wanted this to be more of a tool to capture match statistics and a tool to review/analyze points played.

Think of the stats you see on TV (ESPN, Fox Sport,...) during/after a match where you can see all the stats and simulation of previous played points, I want to do the same but for rec players. People post their match video on Youtube, I input in the shots then the tool will automatically output the simulation and extract the stats. The stats also include interesting answers to questions like "In what scenario player A loses the most (the answer could be "when opponent hits to their backhand")".
 
Last edited:
Top