Advertisement
Guest User

Untitled

a guest
Mar 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. public static void printBoard(int[][] board) {
  2. System.out.println("-------------");
  3. for (int[] aBoard : board) {
  4. System.out.print("|");
  5. for (int anABoard : aBoard) {
  6. System.out.print(" ");
  7. if (anABoard == -1) System.out.print("O");
  8. if (anABoard == 0) System.out.print(" ");
  9. if (anABoard == 1) System.out.print("X");
  10. System.out.print(" |");
  11. }
  12. System.out.println();
  13. System.out.println("-------------");
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement