Skip to content

sylhare/Badminton

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

662 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿธ Badminton Court Manager

A React TypeScript application that helps organize badminton players into court assignments using manual or image-based player list extraction.

Try the app

Badminton Court Manager

Features

  • ๐Ÿ“ธ Image Upload & OCR: Take a picture of a player list and automatically extract names using Tesseract.js
  • โœ๏ธ Manual Player Entry: Add players manually - one at a time or multiple at once
  • ๐Ÿ‘ฅ Player Management: Toggle player presence, remove players
  • ๐Ÿ† Optimised Court Assignment: Automatically assigns players to courts using a cost-based engine that maximises fairness over time
    • Doubles (4 players) preferred
    • Singles (2 players) for odd numbers
    • Automatic bench assignment for extra players
  • ๐Ÿ”„ Team Rotation: Rotate team compositions on a court without reshuffling everyone
  • ๐Ÿ“ฑ Responsive Design: Works on desktop and mobile devices

Algorithm

The engine assigns players to courts by minimising a cost function across these rules:

  1. Bench rotation fairness โ€“ players who have sat out more often get priority to play next.
  2. Singles match rotation fairness โ€“ players who have played fewer singles matches get priority.
  3. Partner variety โ€“ players who have already been teammates many times are less likely to be paired again.
  4. Opponent variety โ€“ players who have faced each other frequently are less likely to be opponents again.
  5. Balanced matches โ€“ wins and losses are spread so teams stay competitive (no "super teams" or weak pairings).
  6. Proper game formats โ€“ courts always have either singles (2) or doubles (4), never 3 players.
  7. Optimal team pairings โ€“ for each doubles match, the system tries all possible team splits and picks the fairest.

See analysis/ for simulation scripts and benchmarks.

Contributing

See .github/CONTRIBUTING.md for development setup and available scripts.

License

AGPL-3.0 ยฉ sylhare

About

๐Ÿ“ธ Snap, ๐ŸŽฒ Shuffle, ๐Ÿธ Play! The badminton organizer app that turns chaos into fair, fun matches. Upload your player list photo or add them manually to get perfectly balanced teams in seconds.

Topics

Resources

License

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors