From 5d4815b73bd684c1c47bd70fa12ecc7755c1ebef Mon Sep 17 00:00:00 2001 From: Malte Tammena Date: Mon, 23 Oct 2017 11:57:15 +0200 Subject: [PATCH] Changed output format --- src/game/Game.java | 6 +++++- src/player/Human.java | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/game/Game.java b/src/game/Game.java index 81387b9..3f88ce6 100644 --- a/src/game/Game.java +++ b/src/game/Game.java @@ -301,7 +301,11 @@ public class Game { } System.out.println("|"); } - System.out.println(); + System.out.println("+-+-+-+-+-+-+-+"); + for (int i = 0; i < board.length; i++) { + System.out.print("|" + i); + } + System.out.println("|"); } public static boolean checkWin(int[][] board, int player){ diff --git a/src/player/Human.java b/src/player/Human.java index 84d792e..ad9e512 100644 --- a/src/player/Human.java +++ b/src/player/Human.java @@ -28,7 +28,7 @@ public class Human implements Player { } int choice = -1; while (!options.contains(new Integer(choice))) { - System.out.print("Choose a move from " + options + ": "); + System.out.println("Choose a move from " + options + ": "); choice = sc.nextInt(); } return choice;