Advertisement
Guest User

Untitled

a guest
Oct 9th, 2015
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.56 KB | None | 0 0
  1. private void display() {
  2.         for (int i = 0; i < board.length; i++) {
  3.             for (int j = 0; j < board[i].length; j++) {
  4.                 if (getPieceAt(i, j) == PieceType.BLACK) {
  5.                     System.out.print("[B]");
  6.                 } else if (getPieceAt(i, j) == PieceType.WHITE) {
  7.                     System.out.print("[W]");
  8.                 } else {
  9.                     System.out.print("[ ]");
  10.                 }
  11.             }
  12.             System.out.println();
  13.         }
  14.         System.out.println();
  15.         System.out.println();
  16.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement