Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static void printBoard(int[][] board) {
- System.out.println("-------------");
- for (int[] aBoard : board) {
- System.out.print("|");
- for (int anABoard : aBoard) {
- System.out.print(" ");
- if (anABoard == -1) System.out.print("O");
- if (anABoard == 0) System.out.print(" ");
- if (anABoard == 1) System.out.print("X");
- System.out.print(" |");
- }
- System.out.println();
- System.out.println("-------------");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement