@Test public void testGetWinners() { assertEquals(new ArrayList<Integer>(), start.getWinners()); assertEquals(new ArrayList<Integer>(), test1.getWinners()); Othello game = new Othello(); @SuppressWarnings("unchecked") BoardGamePlayer<OthelloState>[] players = new BoardGamePlayer[]{new BoardGamePlayerMinimaxAlphaBetaPruning<OthelloState>(new StaticOthelloWPCHeuristic()), new BoardGamePlayerRandom<OthelloState>()}; BoardGameFitnessFunction<OthelloState> fitness = new SimpleWinLoseDrawBoardGameFitness<OthelloState>(); ArrayList<BoardGameFitnessFunction<OthelloState>> fitnesses = new ArrayList<>(); fitnesses.add(fitness); }
@Override public List<Integer> getWinners() { checkWinners(); return winners; }
OthelloState extends TwoDimensionalBoardGameState { @Override public List<Integer> getWinners() { checkWinners(); return winners; } }
OthelloState extends TwoDimensionalBoardGameState { @Override public List<Integer> getWinners() { checkWinners(); return winners; } OthelloState();  OthelloState(OthelloState state);  OthelloState(int[][] board, int nextPlay, List<Integer> win); }
OthelloState extends TwoDimensionalBoardGameState { @Override public List<Integer> getWinners() { checkWinners(); return winners; } OthelloState();  OthelloState(OthelloState state);  OthelloState(int[][] board, int nextPlay, List<Integer> win); int getNumPlayers(); @Override boolean endState(); @Override boolean moveSinglePoint(Point goTo); @SuppressWarnings("unchecked") @Override Set<T> possibleBoardGameStates(T currentState); @SuppressWarnings("unchecked") @Override OthelloState copy(); @Override List<Integer> getWinners(); @Override void setupStartingBoard(); @Override int getBoardWidth(); @Override int getBoardHeight(); @Override char[] getPlayerSymbols(); @Override Color[] getPlayerColors(); @Override boolean moveDoublePoint(Point goTo, Point moveTo); @Override boolean moveOnePiece(); String toString(); }
OthelloState extends TwoDimensionalBoardGameState { @Override public List<Integer> getWinners() { checkWinners(); return winners; } OthelloState();  OthelloState(OthelloState state);  OthelloState(int[][] board, int nextPlay, List<Integer> win); int getNumPlayers(); @Override boolean endState(); @Override boolean moveSinglePoint(Point goTo); @SuppressWarnings("unchecked") @Override Set<T> possibleBoardGameStates(T currentState); @SuppressWarnings("unchecked") @Override OthelloState copy(); @Override List<Integer> getWinners(); @Override void setupStartingBoard(); @Override int getBoardWidth(); @Override int getBoardHeight(); @Override char[] getPlayerSymbols(); @Override Color[] getPlayerColors(); @Override boolean moveDoublePoint(Point goTo, Point moveTo); @Override boolean moveOnePiece(); String toString(); static final int BLACK_CHIP; static final int WHITE_CHIP; }