UPDATE display of the gameboard

master
Mathis 2022-06-07 14:56:26 +02:00
parent f832d54911
commit e81a73d554
2 changed files with 4 additions and 2 deletions

View File

@ -43,6 +43,7 @@ public class LaticeApplicationConsole {
GameBoard board = new GameBoard();
board.displayGameBoard();
Scanner play = new Scanner(System.in);

View File

@ -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(" |____|____|____|____|____|____|____|____|____|");
}