* Added logic to auto select replacement effects. Some changes to counter size and font size handling.

This commit is contained in:
LevelX2 2014-10-30 20:40:23 +01:00
parent ab9c0ae893
commit df71237f46
28 changed files with 445 additions and 140 deletions

View file

@ -356,7 +356,7 @@ public class RandomPlayer extends ComputerPlayer {
}
@Override
public int chooseEffect(List<String> rEffects, Game game) {
public int chooseReplacementEffect(Map<String, String> rEffects, Game game) {
return rnd.nextInt(rEffects.size());
}

View file

@ -283,7 +283,7 @@ public class TestPlayer extends ComputerPlayer {
}
@Override
public int chooseEffect(List<String> rEffects, Game game) {
public int chooseReplacementEffect(Map<String, String> rEffects, Game game) {
if (!choices.isEmpty()) {
for (String choice: choices) {
for (int index = 0; index < rEffects.size(); index++) {
@ -294,7 +294,7 @@ public class TestPlayer extends ComputerPlayer {
}
}
}
return super.chooseEffect(rEffects, game);
return super.chooseReplacementEffect(rEffects, game);
}
@Override