diff --git a/.gitignore b/.gitignore index 6529974..b6128d7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,8 @@ history.dat reports/ doc/ +build/ +.idea/ # Java Section *.class diff --git a/GameHistoryTracker.java b/GameHistoryTracker.java index e4e9faf..ffd810e 100644 --- a/GameHistoryTracker.java +++ b/GameHistoryTracker.java @@ -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); } diff --git a/GameLauncher.java b/GameLauncher.java index d8285c3..3f9ba0e 100644 --- a/GameLauncher.java +++ b/GameLauncher.java @@ -96,7 +96,14 @@ private static List 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, diff --git a/SudokuGame.java b/SudokuGame.java index caa9ecd..afaca44 100644 --- a/SudokuGame.java +++ b/SudokuGame.java @@ -10,6 +10,7 @@ * * @version 1 */ + class SudokuGame implements Game { @Override public String getName() { @@ -18,7 +19,11 @@ public String getName() { @Override public Optional 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(); } }