diff options
Diffstat (limited to 'src/Q8/BadmintonScoring.java')
| -rw-r--r-- | src/Q8/BadmintonScoring.java | 19 |
1 files changed, 5 insertions, 14 deletions
diff --git a/src/Q8/BadmintonScoring.java b/src/Q8/BadmintonScoring.java index d3c8b29..47dce82 100644 --- a/src/Q8/BadmintonScoring.java +++ b/src/Q8/BadmintonScoring.java @@ -16,8 +16,7 @@ public class BadmintonScoring { private static final int PLAYER2 = 1; /** - * Creates an instance of the BadmintonScoring object with a 2D array of - * scores. + * Creates an instance of the BadmintonScoring object with a 2D array of scores. * * @param scores a 2D array of scores for each player. */ @@ -25,30 +24,22 @@ public class BadmintonScoring { this.scores = scores; } - /** - * @return the longest point streak for player 1. - */ + /** @return the longest point streak for player 1. */ public int getContinuousPointsPlayer1() { return this.longestStreakFor(PLAYER1); } - /** - * @return the longest point streak for player 2. - */ + /** @return the longest point streak for player 2. */ public int getContinuousPointsPlayer2() { return this.longestStreakFor(PLAYER2); } - /** - * @return the final score for player 1. - */ + /** @return the final score for player 1. */ public int getPlayer1Points() { return this.finalScoreFor(PLAYER1); } - /** - * @return the final score for player 2. - */ + /** @return the final score for player 2. */ public int getPlayer2Points() { return this.finalScoreFor(PLAYER2); } |
