@Test public void testSetupStartingBoard() { assertFalse(test2.moveSinglePoint(new Point(6,0))); test2.setupStartingBoard(); assertTrue(test2.moveSinglePoint(new Point(6,0))); }
@Override public void setupStartingBoard() { boardState = new int[WIDTH][HEIGHT]; for(int i = 0; i < WIDTH; i++){ for(int j = 0; j < HEIGHT; j++){ boardState[i][j] = EMPTY; } } }
ConnectFourState extends TwoDimensionalBoardGameState { @Override public void setupStartingBoard() { boardState = new int[WIDTH][HEIGHT]; for(int i = 0; i < WIDTH; i++){ for(int j = 0; j < HEIGHT; j++){ boardState[i][j] = EMPTY; } } } }
ConnectFourState extends TwoDimensionalBoardGameState { @Override public void setupStartingBoard() { boardState = new int[WIDTH][HEIGHT]; for(int i = 0; i < WIDTH; i++){ for(int j = 0; j < HEIGHT; j++){ boardState[i][j] = EMPTY; } } } ConnectFourState();  ConnectFourState(ConnectFourState state);  ConnectFourState(int[][] board, int nextPlay, List<Integer> win); }
ConnectFourState extends TwoDimensionalBoardGameState { @Override public void setupStartingBoard() { boardState = new int[WIDTH][HEIGHT]; for(int i = 0; i < WIDTH; i++){ for(int j = 0; j < HEIGHT; j++){ boardState[i][j] = EMPTY; } } } ConnectFourState();  ConnectFourState(ConnectFourState state);  ConnectFourState(int[][] board, int nextPlay, List<Integer> win); @Override boolean endState(); @SuppressWarnings("unchecked") @Override Set<T> possibleBoardGameStates(T currentState); @SuppressWarnings("unchecked") @Override T copy(); @Override List<Integer> getWinners(); @Override void setupStartingBoard(); @Override int getBoardWidth(); @Override int getBoardHeight(); @Override char[] getPlayerSymbols(); @Override Color[] getPlayerColors(); @Override boolean moveOnePiece(); @Override boolean moveSinglePoint(Point goTo); @Override boolean moveDoublePoint(Point goTo, Point moveTo); }
ConnectFourState extends TwoDimensionalBoardGameState { @Override public void setupStartingBoard() { boardState = new int[WIDTH][HEIGHT]; for(int i = 0; i < WIDTH; i++){ for(int j = 0; j < HEIGHT; j++){ boardState[i][j] = EMPTY; } } } ConnectFourState();  ConnectFourState(ConnectFourState state);  ConnectFourState(int[][] board, int nextPlay, List<Integer> win); @Override boolean endState(); @SuppressWarnings("unchecked") @Override Set<T> possibleBoardGameStates(T currentState); @SuppressWarnings("unchecked") @Override T copy(); @Override List<Integer> getWinners(); @Override void setupStartingBoard(); @Override int getBoardWidth(); @Override int getBoardHeight(); @Override char[] getPlayerSymbols(); @Override Color[] getPlayerColors(); @Override boolean moveOnePiece(); @Override boolean moveSinglePoint(Point goTo); @Override boolean moveDoublePoint(Point goTo, Point moveTo);  }