How krishnapriyaakrish-dev/sports-tournament-management-system-java works
This is a console-based sports tournament manager. The user registers teams, adds players and coaches, views tournament details, enters match scores, and views results and the points table. Main.java coordinates this workflow; Tournament and Team hold in-memory state, while Match applies scoring rules. The excerpts show no persistent storage. Coach details are created and displayed, but no association with a team or tournament is visible in the sampled source.
Main entry points: Main.java Menu and input · Tournament.java Tournament · Team.java Team roster · Player.java Player
Components 10
Console workflow
- Menu and input
src/com/reva/sports/app/Main.java
Tournament state
- Tournament
src/com/reva/sports/model/Tournament.java - Team roster
src/com/reva/sports/model/Team.java
Participants
- Person base
src/com/reva/sports/model/Person.java - Player
src/com/reva/sports/model/Player.java - Coach
src/com/reva/sports/model/Coach.java - Sport type
src/com/reva/sports/model/SportType.java
Match scoring
- Match result
src/com/reva/sports/model/Match.java - Scoring contract
src/com/reva/sports/service/Scoring.java
Other components
- User
Connections 23
- User → Menu and input: enters choices
- Menu and input → User: displays results
- Menu and input → Tournament: registers teams
- Menu and input → Tournament: reads teams
- Menu and input → Tournament: displays details
- Menu and input → Tournament: displays points
- Menu and input → Team roster: creates teams
- Menu and input → Team roster: adds players
- Menu and input → Player: creates players
- Menu and input → Coach: creates coaches
- Menu and input → Person base: displays details
- Menu and input → Coach: displays coach type
- Menu and input → Match result: creates match
- Menu and input → Scoring contract: enters scores
- Menu and input → Scoring contract: gets winner
- Tournament → Team roster: stores teams
- Team roster → Player: stores players
- Match result → Team roster: awards points
- Match result → Scoring contract: implements
- Player → Person base: extends
- Coach → Person base: extends
- Player → Sport type: uses sport
- Tournament → Sport type: uses sport