Top 3 targets only: Only evaluates the 3 closest coins — eliminating 80%+ of unnecessary calculations while maintaining accuracy.
Pocket sorting: Pockets are sorted by distance to each coin for early-exit efficiency.
Early exit on perfect shots: When a perfect straight shot is found (alignment > 96% and short distance < 300px), the function returns instantly without checking remaining positions.
Reduced baseline scanning: Fewer, smarter striker positions are scanned at each level.
10ms execution timeout: The AI fires its shot 10 milliseconds after its turn starts — virtually instant!
🔇 Sound OFF by Default
The web app loads completely silent — no audio plays on page load.
Users must manually toggle Sound ON (🔊 Sound ON) to hear anything.
🎶 Beautiful Lo-Fi Background Music
When sound is toggled ON during a match, a synthesized warm lo-fi chill loop plays soft sine-wave chords (Cmaj7 → Am7 → Fmaj7 → G7) with a gentle lowpass filter — perfect for relaxed carrom gameplay!
Automatically stops when match ends or sound is toggled off.