@Test public void testEndState() { assertFalse(start.endState()); assertFalse(test1.endState()); assertFalse(test2.endState()); assertTrue(test3.endState()); assertTrue(test4.endState()); }
@Override public boolean endState() { checkWinner(); return !winners.isEmpty(); }
TicTacToeState extends TwoDimensionalBoardGameState { @Override public boolean endState() { checkWinner(); return !winners.isEmpty(); } }
TicTacToeState extends TwoDimensionalBoardGameState { @Override public boolean endState() { checkWinner(); return !winners.isEmpty(); } TicTacToeState();  TicTacToeState(TicTacToeState state);  TicTacToeState(int[][] board, int player, List<Integer> win); }
TicTacToeState extends TwoDimensionalBoardGameState { @Override public boolean endState() { checkWinner(); return !winners.isEmpty(); } TicTacToeState();  TicTacToeState(TicTacToeState state);  TicTacToeState(int[][] board, int player, List<Integer> win); int getNumPlayers(); @Override boolean moveSinglePoint(Point space); @Override boolean endState(); @SuppressWarnings("unchecked") @Override TicTacToeState copy(); @Override Set<BoardGameState> possibleBoardGameStates(BoardGameState currentState); @Override void setupStartingBoard(); @Override int getBoardWidth(); @Override int getBoardHeight(); char[] getPlayerSymbols(); @Override Color[] getPlayerColors(); @Override boolean moveDoublePoint(Point goTo, Point moveTo); @Override boolean moveOnePiece(); }
TicTacToeState extends TwoDimensionalBoardGameState { @Override public boolean endState() { checkWinner(); return !winners.isEmpty(); } TicTacToeState();  TicTacToeState(TicTacToeState state);  TicTacToeState(int[][] board, int player, List<Integer> win); int getNumPlayers(); @Override boolean moveSinglePoint(Point space); @Override boolean endState(); @SuppressWarnings("unchecked") @Override TicTacToeState copy(); @Override Set<BoardGameState> possibleBoardGameStates(BoardGameState currentState); @Override void setupStartingBoard(); @Override int getBoardWidth(); @Override int getBoardHeight(); char[] getPlayerSymbols(); @Override Color[] getPlayerColors(); @Override boolean moveDoublePoint(Point goTo, Point moveTo); @Override boolean moveOnePiece(); static final int X; static final int O; static final int NUMBER_OF_PLAYERS; static final int BOARD_WIDTH; }