update Score.java to pass tests
This commit is contained in:
3 files changed
+9
-3
No files matched your search
@@ -43,7 +43,6 @@ public class Score
|
||||
|
||||
writer.write(score.toString());
|
||||
writer.newLine();
|
||||
writer.newLine();
|
||||
|
||||
writer.close();
|
||||
}
|
||||
@@ -178,8 +177,9 @@ public class Score
|
||||
log.append("Incorrect Attempts: ");
|
||||
log.append(this.numIncorrectTwoAttempts);
|
||||
log.append("\n");
|
||||
log.append("Total Score: ");
|
||||
log.append("Score: ");
|
||||
log.append(this.score);
|
||||
log.append(" points\n");
|
||||
|
||||
return log.toString();
|
||||
}
|
||||
|
||||
@@ -271,7 +271,7 @@ public class World
|
||||
"the previous record was %.2f points per game ",
|
||||
prevHighScore.calculateAverage()
|
||||
);
|
||||
|
||||
|
||||
System.out.printf(
|
||||
"on %s at %s.\n",
|
||||
prevHighScore.getDateTimePlayed().split(" ")[SPLIT_DATE],
|
||||
|
||||
Reference in new issue
Block a user