update Score.java to pass tests

This commit is contained in:
SowinskiBraeden committed 2025-11-14 17:45:14 -08:00
1 parent c4cc81a1ad
commit fb90667867
3 files changed
+9 -3

No files matched your search

Generated
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" />
</component>
</project>
+2 -2
View File
@@ -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();
}
+1 -1
View File
@@ -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],