@Test public void testConnect4Game() { Connect4 connect4 = new Connect4(); MockConnect4Player player = new MockConnect4Player(); GameOutcome outcome = connect4.play(player, player, null); assertEquals(new GameOutcome(1.0, 0.0), outcome); }
@Override public GameOutcome play(Connect4Player blackPlayer, Connect4Player whitePlayer, RandomDataGenerator random) { return play(blackPlayer, whitePlayer, new Connect4State(new Connect4Board(), Board.BLACK), random); }
Connect4 implements BoardGame<Connect4Player, Connect4Player, Connect4State> { @Override public GameOutcome play(Connect4Player blackPlayer, Connect4Player whitePlayer, RandomDataGenerator random) { return play(blackPlayer, whitePlayer, new Connect4State(new Connect4Board(), Board.BLACK), random); } }
Connect4 implements BoardGame<Connect4Player, Connect4Player, Connect4State> { @Override public GameOutcome play(Connect4Player blackPlayer, Connect4Player whitePlayer, RandomDataGenerator random) { return play(blackPlayer, whitePlayer, new Connect4State(new Connect4Board(), Board.BLACK), random); }  }
Connect4 implements BoardGame<Connect4Player, Connect4Player, Connect4State> { @Override public GameOutcome play(Connect4Player blackPlayer, Connect4Player whitePlayer, RandomDataGenerator random) { return play(blackPlayer, whitePlayer, new Connect4State(new Connect4Board(), Board.BLACK), random); }  @Override GameOutcome play(Connect4Player blackPlayer, Connect4Player whitePlayer, RandomDataGenerator random); @Override GameOutcome play(Connect4Player blackPlayer, Connect4Player whitePlayer, Connect4State initialState,
			RandomDataGenerator random); static boolean isWinningMove(int move, int playerColor, Connect4Board board); }
Connect4 implements BoardGame<Connect4Player, Connect4Player, Connect4State> { @Override public GameOutcome play(Connect4Player blackPlayer, Connect4Player whitePlayer, RandomDataGenerator random) { return play(blackPlayer, whitePlayer, new Connect4State(new Connect4Board(), Board.BLACK), random); }  @Override GameOutcome play(Connect4Player blackPlayer, Connect4Player whitePlayer, RandomDataGenerator random); @Override GameOutcome play(Connect4Player blackPlayer, Connect4Player whitePlayer, Connect4State initialState,
			RandomDataGenerator random); static boolean isWinningMove(int move, int playerColor, Connect4Board board);  }