Check database for games
1.1. If all games in the season have been logged:
Prevent the user from logging more games.
Ask the user if they want to proceed to the playoffs:
1.1.1. If no, return to the main menu.
1.1.2. If yes, complete all playoff games (all Best of 1 matches) until a champion is declared.
1.2. Otherwise, continue to the next step.
Display all teams
For team 1, check if the team has fewer than 7 games logged:
2.1. If the team has exactly 7 games, display an error message and prompt the user to try again.
Repeat step 2 for team 2.
Prompt for the game score.
Enter player statistics:
For each player on team 1, ask for points (pts), rebounds (rbs), and assists (asts), then update the database.
Repeat for each player on team 2.
Display success message.
Note
one method for validating if teams has < 7 games. Why validate? If a team completed their 7 games. They're done with their season and just wait for other teams to complete all their games too. Then comes playoffs.
<1> Log a Game Flow
Check database for games 1.1. If all games in the season have been logged:
1.2. Otherwise, continue to the next step.
Display all teams
Repeat step 2 for team 2.
Prompt for the game score.
Enter player statistics:
Display success message.
Note