@Test public void testSetupStartingBoard() { assertFalse(test1.moveDoublePoint(new Point(2,1), new Point(3,2))); test1.setupStartingBoard(); assertEquals(start, test1); assertTrue(test1.moveDoublePoint(new Point(2,1), new Point(3,2))); }
@Override public void setupStartingBoard() { boardState = newCheckBoard(); movesSinceLastJump = 0; movesSinceNon_King = 0; doubleJumpCheck = null; }
CheckersState extends TwoDimensionalBoardGameState { @Override public void setupStartingBoard() { boardState = newCheckBoard(); movesSinceLastJump = 0; movesSinceNon_King = 0; doubleJumpCheck = null; } }
CheckersState extends TwoDimensionalBoardGameState { @Override public void setupStartingBoard() { boardState = newCheckBoard(); movesSinceLastJump = 0; movesSinceNon_King = 0; doubleJumpCheck = null; } CheckersState();  CheckersState(CheckersState state);   CheckersState(int[][] newBoard, int player, List<Integer> win); }
CheckersState extends TwoDimensionalBoardGameState { @Override public void setupStartingBoard() { boardState = newCheckBoard(); movesSinceLastJump = 0; movesSinceNon_King = 0; doubleJumpCheck = null; } CheckersState();  CheckersState(CheckersState state);   CheckersState(int[][] newBoard, int player, List<Integer> win); int getNumPlayers(); List<Integer> getWinners(); @Override boolean endState(); @Override double[] getDescriptor(); @Override boolean moveDoublePoint(Point moveThis, Point moveTo); @SuppressWarnings("unchecked") @Override CheckersState copy(); @SuppressWarnings("unchecked") @Override Set<T> possibleBoardGameStates(T currentState); @Override void setupStartingBoard(); @Override int getBoardWidth(); @Override int getBoardHeight(); @Override char[] getPlayerSymbols(); @Override Color[] getPlayerColors(); @Override boolean moveSinglePoint(Point goTo); @Override boolean moveOnePiece(); }
CheckersState extends TwoDimensionalBoardGameState { @Override public void setupStartingBoard() { boardState = newCheckBoard(); movesSinceLastJump = 0; movesSinceNon_King = 0; doubleJumpCheck = null; } CheckersState();  CheckersState(CheckersState state);   CheckersState(int[][] newBoard, int player, List<Integer> win); int getNumPlayers(); List<Integer> getWinners(); @Override boolean endState(); @Override double[] getDescriptor(); @Override boolean moveDoublePoint(Point moveThis, Point moveTo); @SuppressWarnings("unchecked") @Override CheckersState copy(); @SuppressWarnings("unchecked") @Override Set<T> possibleBoardGameStates(T currentState); @Override void setupStartingBoard(); @Override int getBoardWidth(); @Override int getBoardHeight(); @Override char[] getPlayerSymbols(); @Override Color[] getPlayerColors(); @Override boolean moveSinglePoint(Point goTo); @Override boolean moveOnePiece(); static final int BOARD_WIDTH; static final int STARTCHECKS; static final int BLACK_CHECK; static final int BLACK_CHECK_KING; static final int RED_CHECK; static final int RED_CHECK_KING; public Point doubleJumpCheck; }