Skip to content
Open
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
history.dat
reports/
doc/
build/
.idea/

# Java Section
*.class
Expand Down
3 changes: 0 additions & 3 deletions GameHistoryTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ public void recordPlay(final String gameName, final Integer score) {
if (score != null) {
stats.totalScore += score;
stats.scores.add(score);
} else if (score == null) {
System.out.println("Score is null");
return;
}
statsMap.put(gameName, stats);
}
Expand Down
9 changes: 8 additions & 1 deletion GameLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,14 @@ private static List<Game> registerGames() {
protected void run() {
boolean running = true;
while (running) {
System.out.println("\n=== Console Arcade Hub ===");
System.out.println(
"=== Console Game Hub === \n"
+ " __ __ ___ _ _ _ _ \n"
+ " | \\/ | __| \\| | | | |\n"
+ " | |\\/| | _|| .` | |_| |\n"
+ " |_| |_|___|_|\\_|\\___/ \n"
+ "\n"
);
for (int i = 0; i < this.games.size(); i++) {
System.out.printf("%d. %s\n",
i + 1,
Expand Down
7 changes: 6 additions & 1 deletion SudokuGame.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* </pre>
* @version 1
*/

class SudokuGame implements Game {
@Override
public String getName() {
Expand All @@ -18,7 +19,11 @@ public String getName() {

@Override
public Optional<Integer> play() {
System.out.println("[Playing Sudoku - Placeholder]");
System.out.println("Playing Sudoku");
System.out.println("The goal of Sudoku is to fill each space in");
System.out.println("the grid with a digit, 1 through 9. The only");
System.out.println("rule is that there can be no recurring ");
System.out.println("digits on any colomn, row, or subgrid of 3x3.")
return Optional.empty();
}
}