From e81a73d5542f5de7d226bc8dfc15947f68678904 Mon Sep 17 00:00:00 2001 From: Mathis Date: Tue, 7 Jun 2022 14:56:26 +0200 Subject: [PATCH] UPDATE display of the gameboard --- .../java/latice/application/LaticeApplicationConsole.java | 1 + src/main/java/latice/model/console/GameBoard.java | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/latice/application/LaticeApplicationConsole.java b/src/main/java/latice/application/LaticeApplicationConsole.java index ac850f9..8f64c55 100644 --- a/src/main/java/latice/application/LaticeApplicationConsole.java +++ b/src/main/java/latice/application/LaticeApplicationConsole.java @@ -43,6 +43,7 @@ public class LaticeApplicationConsole { GameBoard board = new GameBoard(); + board.displayGameBoard(); Scanner play = new Scanner(System.in); diff --git a/src/main/java/latice/model/console/GameBoard.java b/src/main/java/latice/model/console/GameBoard.java index 2bd45b3..466f8af 100644 --- a/src/main/java/latice/model/console/GameBoard.java +++ b/src/main/java/latice/model/console/GameBoard.java @@ -45,8 +45,9 @@ public class GameBoard { public void displayGameBoard() { System.out.println(" 1. 2. 3. 4. 5. 6. 7. 8. 9."); - System.out.println(" +----+----+----+----+----+----+----+----+----+"); + System.out.println(" ____ ____ ____ ____ ____ ____ ____ ____ ____ "); for (int i = 0; i < DIMENSION; i++) { + System.out.println(" | | | | | | | | | |"); System.out.print(i+1 + ". "); for (int j = 0; j < DIMENSION; j++) { System.out.print("|"); @@ -88,7 +89,7 @@ public class GameBoard { if (j == 8) { System.out.println("|"); - System.out.println(" +----+----+----+----+----+----+----+----+----+"); + System.out.println(" |____|____|____|____|____|____|____|____|____|"); }