TicTacToeState extends TwoDimensionalBoardGameState { @Override public void setupStartingBoard() { } 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; }
@Test public void testSetupStartingBoard() { start.setupStartingBoard(); assertTrue(start.moveSinglePoint(new Point(0,0))); assertTrue(start.moveSinglePoint(new Point(0,1))); assertTrue(start.moveSinglePoint(new Point(0,2))); assertTrue(start.moveSinglePoint(new Point(1,0))); assertTrue(start.moveSinglePoint(new Point(1,1))); assertTrue(start.moveSinglePoint(new Point(1,2))); assertTrue(start.moveSinglePoint(new Point(2,0))); assertTrue(start.moveSinglePoint(new Point(2,1))); assertTrue(start.moveSinglePoint(new Point(2,2))); assertFalse(test3.moveSinglePoint(new Point(1,1))); test3.setupStartingBoard(); assertFalse(test3.moveSinglePoint(new Point(0,0))); assertFalse(test3.moveSinglePoint(new Point(0,1))); assertFalse(test3.moveSinglePoint(new Point(0,2))); assertFalse(start.moveSinglePoint(new Point(1,0))); assertFalse(start.moveSinglePoint(new Point(1,1))); assertFalse(start.moveSinglePoint(new Point(1,2))); assertFalse(start.moveSinglePoint(new Point(2,0))); assertFalse(start.moveSinglePoint(new Point(2,1))); assertFalse(start.moveSinglePoint(new Point(2,2))); }