From bf31595a15f8f0806bdf2fd38a8b0179b424066b Mon Sep 17 00:00:00 2001 From: CamCranda11 Date: Mon, 13 Oct 2025 17:40:56 -0400 Subject: [PATCH 01/11] my attempt at a description for Sudoku --- SudokuGame.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/SudokuGame.java b/SudokuGame.java index caa9ecd..0e93813 100644 --- a/SudokuGame.java +++ b/SudokuGame.java @@ -10,6 +10,7 @@ * * @version 1 */ + class SudokuGame implements Game { @Override public String getName() { @@ -18,7 +19,9 @@ public String getName() { @Override public Optional play() { - System.out.println("[Playing Sudoku - Placeholder]"); + System.out.println("Playing Sudoku"); + System.out.println("The objective of Sudoku is to fill each space in the grid with a digit, 1 through 9."); + System.out.println("The only rule is that there can be no recurring digits on any colomn, row, or subgrid of 3x3."); return Optional.empty(); } } From 5fe447369452fd055d2459fc1c4016957e9b6301 Mon Sep 17 00:00:00 2001 From: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> Date: Wed, 15 Oct 2025 15:01:29 -0600 Subject: [PATCH 02/11] Remove null score check and logging Signed-off-by: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> --- GameHistoryTracker.java | 3 --- 1 file changed, 3 deletions(-) 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); } From 1a55d42ac548902c3355f123a4d5855c3e934f66 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 15 Oct 2025 15:19:15 -0600 Subject: [PATCH 03/11] Added ASCII art to game launcher (#120) * Added ASCII art to game launcher --- GameLauncher.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/GameLauncher.java b/GameLauncher.java index d8285c3..dd7e109 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("\n=== Console Game Hub ===\n"); + System.out.println( + " __ __ ___ _ _ _ _ \n" + + " | \\/ | __| \\| | | | |\n" + + " | |\\/| | _|| .` | |_| |\n" + + " |_| |_|___|_|\\_|\\___/ \n" + + " " + ); for (int i = 0; i < this.games.size(); i++) { System.out.printf("%d. %s\n", i + 1, From 0c8b65f8a903d25b88230c2b35d0dceeec18c178 Mon Sep 17 00:00:00 2001 From: Matt Date: Wed, 15 Oct 2025 15:44:46 -0600 Subject: [PATCH 04/11] Added ASCII art to Game Launcher (#128) * Added ASCII art to game launcher --------- Signed-off-by: Matt Signed-off-by: Jody Paul Co-authored-by: Matt Cantin Co-authored-by: Jody Paul --- GameLauncher.java | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/GameLauncher.java b/GameLauncher.java index dd7e109..3f9ba0e 100644 --- a/GameLauncher.java +++ b/GameLauncher.java @@ -96,14 +96,14 @@ private static List registerGames() { protected void run() { boolean running = true; while (running) { - System.out.println("\n=== Console Game Hub ===\n"); System.out.println( - " __ __ ___ _ _ _ _ \n" + - " | \\/ | __| \\| | | | |\n" + - " | |\\/| | _|| .` | |_| |\n" + - " |_| |_|___|_|\\_|\\___/ \n" + - " " - ); +"=== 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, From 71affa51565a36189e720a7935cf5fec028e42ae Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 20 Oct 2025 14:18:32 -0600 Subject: [PATCH 05/11] Ignore .idea/ folder (#127) * Add .idea/ to .gitignore Signed-off-by: Matt --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 6529974..44f1ce5 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ history.dat reports/ doc/ +.idea/ # Java Section *.class From 2333af820e5830844979c244c3030009c3129248 Mon Sep 17 00:00:00 2001 From: agina2004 <72883535+agina2004@users.noreply.github.com> Date: Wed, 22 Oct 2025 15:31:09 -0600 Subject: [PATCH 06/11] Ignore build subdirectory via .gitignore (#124) * Update .gitignore --------- Signed-off-by: Matt Signed-off-by: agina2004 <72883535+agina2004@users.noreply.github.com> Co-authored-by: Matt Co-authored-by: ahmed --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 44f1ce5..b6128d7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,7 @@ history.dat reports/ doc/ +build/ .idea/ # Java Section From 9fe2d04c0abe8e48042c65ed7e1558e8bb0f6e40 Mon Sep 17 00:00:00 2001 From: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> Date: Thu, 23 Oct 2025 12:23:17 -0600 Subject: [PATCH 07/11] Fix formatting of print statements in play method Signed-off-by: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> --- SudokuGame.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SudokuGame.java b/SudokuGame.java index 0e93813..dc0f936 100644 --- a/SudokuGame.java +++ b/SudokuGame.java @@ -20,8 +20,8 @@ public String getName() { @Override public Optional play() { System.out.println("Playing Sudoku"); - System.out.println("The objective of Sudoku is to fill each space in the grid with a digit, 1 through 9."); - System.out.println("The only rule is that there can be no recurring digits on any colomn, row, or subgrid of 3x3."); + System.out.println("The objective of Sudoku is to fill each space in the grid with a digit, 1 through 9."); + System.out.println("The only rule is that there can be no recurring digits on any colomn, row, or subgrid of 3x3."); return Optional.empty(); } } From 6218baf40a0d458890f470982991961f8c4bffed Mon Sep 17 00:00:00 2001 From: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> Date: Thu, 23 Oct 2025 14:34:30 -0400 Subject: [PATCH 08/11] Attempt #1 Checkstyle First try to get my code compliant with ant checkstyle Signed-off-by: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> --- SudokuGame.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/SudokuGame.java b/SudokuGame.java index dc0f936..7dc8c6e 100644 --- a/SudokuGame.java +++ b/SudokuGame.java @@ -20,8 +20,9 @@ public String getName() { @Override public Optional play() { System.out.println("Playing Sudoku"); - System.out.println("The objective of Sudoku is to fill each space in the grid with a digit, 1 through 9."); - System.out.println("The only rule is that there can be no recurring digits on any colomn, row, or subgrid of 3x3."); + System.out.println("The objective of Sudoku is to fill each space in the grid with a digit,"); + System.out.println("1 through 9. The only rule is that there can be no recurring digits"); + System.out.println("on any colomn, row, or subgrid of 3x3."); return Optional.empty(); } } From 2664a7903ebaedfe86314b321f765ff272ce755e Mon Sep 17 00:00:00 2001 From: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> Date: Thu, 23 Oct 2025 14:36:55 -0400 Subject: [PATCH 09/11] Attempt #2 at Checkstyle Second try Signed-off-by: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> --- SudokuGame.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SudokuGame.java b/SudokuGame.java index 7dc8c6e..0b7db02 100644 --- a/SudokuGame.java +++ b/SudokuGame.java @@ -20,9 +20,9 @@ public String getName() { @Override public Optional play() { System.out.println("Playing Sudoku"); - System.out.println("The objective of Sudoku is to fill each space in the grid with a digit,"); - System.out.println("1 through 9. The only rule is that there can be no recurring digits"); - System.out.println("on any colomn, row, or subgrid of 3x3."); + System.out.println("The goal of Sudoku is to fill each space in the grid with"); + System.out.println("a digit, 1 through 9. The only rule is that there can be"); + System.out.println("no recurring digits on any colomn, row, or subgrid of 3x3."); return Optional.empty(); } } From d0faee6d18544f97d44eeee9ccc44ebb65c388ae Mon Sep 17 00:00:00 2001 From: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> Date: Thu, 23 Oct 2025 14:40:10 -0400 Subject: [PATCH 10/11] Update SudokuGame.java Signed-off-by: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> --- SudokuGame.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/SudokuGame.java b/SudokuGame.java index 0b7db02..01170f4 100644 --- a/SudokuGame.java +++ b/SudokuGame.java @@ -20,9 +20,10 @@ public String getName() { @Override public Optional play() { System.out.println("Playing Sudoku"); - System.out.println("The goal of Sudoku is to fill each space in the grid with"); - System.out.println("a digit, 1 through 9. The only rule is that there can be"); - System.out.println("no recurring digits on any colomn, row, or subgrid of 3x3."); + 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 digits"); + System.out.println("on any colomn, row, or subgrid of 3x3.") return Optional.empty(); } } From f32f98c83f6a314084c091ee889f0f4a83c8287d Mon Sep 17 00:00:00 2001 From: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> Date: Thu, 23 Oct 2025 14:43:19 -0400 Subject: [PATCH 11/11] Fix formatting of Sudoku game instructions Signed-off-by: CamCranda11 <159499223+CamCranda11@users.noreply.github.com> --- SudokuGame.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SudokuGame.java b/SudokuGame.java index 01170f4..afaca44 100644 --- a/SudokuGame.java +++ b/SudokuGame.java @@ -20,10 +20,10 @@ public String getName() { @Override public Optional play() { 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 digits"); - System.out.println("on any colomn, row, or subgrid of 3x3.") + 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(); } }