Created
January 25, 2023 15:31
-
-
Save mhassanist/c40963131db91e59300de3e5199254c9 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Simplified Table Tennis Game Rules: | |
- The game has 2 players or 4 players (2 teams of 2). | |
- The objective is to hit the ball in such a way that the opponent is not able to return it. Points are awarded to the player or team who succeeds in that. | |
- One team starts serving. The ball must only touch each table side once after each hit. | |
- The first player or team to reach 11 points with a lead of at least 2 points wins the game. | |
—> Make a program that manages the game by keeping track of the awarded points. When the game ends, it should announce the winner. | |
—> With your team, decide what objects (attributes and methods) are needed to develop this program. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment