Exemplo n.º 1
0
 @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));
 }
Exemplo n.º 2
0
 public Player getWinner(Game game) {
   return game.getAge() >= -3000 ? Player.RED : null;
 }
Exemplo n.º 3
0
 @Override
 public int getAge() {
   return decoratedGame.getAge();
 }