Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Description 📜
Summary
In this PR, I addressed the following issues:
1.Implemented a point-based scoring system where the game ends when a player reaches 11 points.
2.Added a function to declare the winner and reset the game.
3.Adjusted ball speed and direction for more accurate and dynamic gameplay.
4.Provided a brief description of the changes made in the code.
PR Description
Fixes #3248
This PR enhances the table tennis game by introducing a point-based scoring system. The game now ends when a player scores 11 points. Additionally, the code has been optimized to improve the accuracy and dynamics of ball movement. A function has been added to declare the winner and reset the game when the winning condition is met.
Mark the task you have completed ✅
Add your screenshots(Optional) 📸
Thank you soo much for contributing to our repository 💗