@Test public void initialization() { assertThat(coincheGame.getCurrentRound()).as("Check first round isn't null").isNotNull(); assertThat(coincheGame.getCurrentPlayerIndex()) .as("Check first player index is 0") .isEqualTo(0); CoincheGameRound round = coincheGame.getCurrentRound(); GameState state = round.getState(); assertThat(state).as("Check first state isn't null").isNotNull(); assertThat(state.getCurrentPlayer()).as("Check first player is p1").isEqualTo(p1); assertThat(state) .as("Check first state is a bidding state") .isInstanceOf(GameStateBidding.class); GameStateBidding biddingState = (GameStateBidding) state; assertThat(biddingState.getHighestBidding()).as("Check first highest bidding is null").isNull(); }
public CoincheGameRound getCurrentRound() { return currentRound; }
CoincheGame extends RedBlueRotatingPlayersGame<Player> { public CoincheGameRound getCurrentRound() { return currentRound; } }
CoincheGame extends RedBlueRotatingPlayersGame<Player> { public CoincheGameRound getCurrentRound() { return currentRound; } CoincheGame(Team redTeam, Team blueTeam); }
CoincheGame extends RedBlueRotatingPlayersGame<Player> { public CoincheGameRound getCurrentRound() { return currentRound; } CoincheGame(Team redTeam, Team blueTeam); CoincheGameRound getCurrentRound(); static int getMaxTricksPoints(); static int getWinningPoints(); boolean isNewRound(); Player getPlayer(String username); }
CoincheGame extends RedBlueRotatingPlayersGame<Player> { public CoincheGameRound getCurrentRound() { return currentRound; } CoincheGame(Team redTeam, Team blueTeam); CoincheGameRound getCurrentRound(); static int getMaxTricksPoints(); static int getWinningPoints(); boolean isNewRound(); Player getPlayer(String username);  }