diff options
| author | mo khan <mo@mokhan.ca> | 2019-08-11 17:38:24 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2019-08-11 17:38:24 -0600 |
| commit | a7abfd9f11d2d750cb2b45bfc9de8858a29f05f2 (patch) | |
| tree | 999ec6556bdb3b88a1f7bb9cd7c2f803bbbeac40 /src/Q8/BadmintonScoring.java | |
| parent | a04f5ec262de028c843e38bf5864cd84953258b1 (diff) | |
add documentation and complete program profile
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); } |
