Design, test, and benchmark custom trajectory prediction algorithms
For Sports Science Researchers: This lab allows you to experiment with different trajectory prediction models. Your custom algorithm will be used by the AI players to make tactical decisions. Test various friction models, surface zones, and environmental factors to see which yields the best game performance.
Sports science researchers: Import custom trajectory prediction algorithms to test against the default model. Edit the JSON below and click Submit to activate your algorithm.
{
name: string, // Algorithm name
version: string, // Semantic version
author: string, // Your name/lab
description: string, // What makes your algorithm unique
parameters: {
friction: 0-1, // Base friction coefficient
timeStep: number, // Simulation step (seconds)
maxPredictionTime: num, // Max lookahead time
bounceEnergyLoss: 0-1, // Energy lost on wall bounce
stopThreshold: number // Min speed before stopping
},
customFriction?: {
type: 'linear' | 'quadratic' | 'exponential' | 'piecewise',
coefficients: number[],
description: string
},
environment?: {
windEnabled: boolean,
windVx?: number,
windVy?: number,
surfaceFrictionZones?: [...] // Define field zones
},
metadata: {
dateCreated: ISO date,
tags: string[],
expectedAccuracy?: number,
benchmarkScore?: number
}
}Compare your custom algorithm against the baseline to see which yields better game scores
Test different algorithms and observe which leads to higher scores over multiple games
How to use this benchmark:
Edit the JSON configuration to define your custom trajectory prediction algorithm. You can modify friction coefficients, time steps, bounce behavior, and even add environmental factors like wind or surface friction zones.
Click "Run Benchmark" to test your algorithm's accuracy against the baseline. Lower error values indicate better prediction accuracy. The benchmark tests various ball trajectories and measures how closely your algorithm matches the ground truth.
Once you've submitted your algorithm, go back to the game. Your custom algorithm will be used for all trajectory predictions. Observe how the AI players perform with your algorithm and track the game score over multiple matches.
Return to the lab to refine your algorithm based on game performance. Try different parameter combinations, friction models, or environmental factors to achieve the best results.
Built for sports science research and AI experimentation.
Your algorithms are stored locally and only affect your browser session.