@Test public void testToString() { Board board = new Board(); LOG.debug(board.toString()); }
public String toString() { StringBuilder sb = new StringBuilder("\n---------\n"); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { sb.append("|").append(board[i][j]).append("|"); } sb.append("\n---------\n"); } return sb.toString(); }
Board implements Serializable { public String toString() { StringBuilder sb = new StringBuilder("\n---------\n"); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { sb.append("|").append(board[i][j]).append("|"); } sb.append("\n---------\n"); } return sb.toString(); } }
Board implements Serializable { public String toString() { StringBuilder sb = new StringBuilder("\n---------\n"); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { sb.append("|").append(board[i][j]).append("|"); } sb.append("\n---------\n"); } return sb.toString(); } Board();  Board(String key); }
Board implements Serializable { public String toString() { StringBuilder sb = new StringBuilder("\n---------\n"); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { sb.append("|").append(board[i][j]).append("|"); } sb.append("\n---------\n"); } return sb.toString(); } Board();  Board(String key); List<Board> nextBoards(String player); boolean isEndState(); int score(String player); int scoreLines(String player); int scoreLine(String pos1, String pos2, String pos3, String player); Board clone(); String toString(); String toKey(); }
Board implements Serializable { public String toString() { StringBuilder sb = new StringBuilder("\n---------\n"); for (int i = 0; i < 3; i++) { for (int j = 0; j < 3; j++) { sb.append("|").append(board[i][j]).append("|"); } sb.append("\n---------\n"); } return sb.toString(); } Board();  Board(String key); List<Board> nextBoards(String player); boolean isEndState(); int score(String player); int scoreLines(String player); int scoreLine(String pos1, String pos2, String pos3, String player); Board clone(); String toString(); String toKey(); static final String EMPTY; public String[][] board; }