mirror of
https://github.com/magefree/mage.git
synced 2025-12-22 03:22:00 -08:00
* Added logic to auto select replacement effects. Some changes to counter size and font size handling.
This commit is contained in:
parent
ab9c0ae893
commit
df71237f46
28 changed files with 445 additions and 140 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue