UPDATE display of the gameboard
parent
f832d54911
commit
e81a73d554
|
@ -43,6 +43,7 @@ public class LaticeApplicationConsole {
|
||||||
|
|
||||||
|
|
||||||
GameBoard board = new GameBoard();
|
GameBoard board = new GameBoard();
|
||||||
|
board.displayGameBoard();
|
||||||
|
|
||||||
|
|
||||||
Scanner play = new Scanner(System.in);
|
Scanner play = new Scanner(System.in);
|
||||||
|
|
|
@ -45,8 +45,9 @@ public class GameBoard {
|
||||||
|
|
||||||
public void displayGameBoard() {
|
public void displayGameBoard() {
|
||||||
System.out.println(" 1. 2. 3. 4. 5. 6. 7. 8. 9.");
|
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++) {
|
for (int i = 0; i < DIMENSION; i++) {
|
||||||
|
System.out.println(" | | | | | | | | | |");
|
||||||
System.out.print(i+1 + ". ");
|
System.out.print(i+1 + ". ");
|
||||||
for (int j = 0; j < DIMENSION; j++) {
|
for (int j = 0; j < DIMENSION; j++) {
|
||||||
System.out.print("|");
|
System.out.print("|");
|
||||||
|
@ -88,7 +89,7 @@ public class GameBoard {
|
||||||
|
|
||||||
if (j == 8) {
|
if (j == 8) {
|
||||||
System.out.println("|");
|
System.out.println("|");
|
||||||
System.out.println(" +----+----+----+----+----+----+----+----+----+");
|
System.out.println(" |____|____|____|____|____|____|____|____|____|");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue