Hendrizzzz / OS-Midterm-Group-Project

MIT License
0 stars 0 forks source link

DBA Feature 1 : Log a Game #8

Open Hendrizzzz opened 2 weeks ago

Hendrizzzz commented 2 weeks ago

<1> Log a Game Flow

  1. 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.

  2. 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.
  3. Repeat step 2 for team 2.

  4. Prompt for the game score.

  5. 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.
  6. Display success message.

Note