Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void display() {
- for (int i = 0; i < board.length; i++) {
- for (int j = 0; j < board[i].length; j++) {
- if (getPieceAt(i, j) == PieceType.BLACK) {
- System.out.print("[B]");
- } else if (getPieceAt(i, j) == PieceType.WHITE) {
- System.out.print("[W]");
- } else {
- System.out.print("[ ]");
- }
- }
- System.out.println();
- }
- System.out.println();
- System.out.println();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement