@Test public void shouldUseAgingBetaStrategy() { // The game is freshly created, so it is currently turn 1 for (int i = 0; i < 50; i++) { game.endRound(); } assertThat("The new age should be 1991", game.getAge(), is(450)); }
public Player getWinner(Game game) { return game.getAge() >= -3000 ? Player.RED : null; }
@Override public int getAge() { return decoratedGame.getAge(); }