* Some fixes/chnages to AI player. Needs probably some more testing.

This commit is contained in:
LevelX2 2015-07-12 19:51:04 +02:00
parent c53c09a59b
commit fa0a40b0d6
8 changed files with 209 additions and 150 deletions

View file

@ -41,11 +41,10 @@ import org.mage.test.serverside.base.impl.CardTestPlayerAPIImpl;
*
* @author LevelX2
*/
public abstract class CardTestPlayerBaseAI extends CardTestPlayerAPIImpl {
int skill = 9;
int skill = 6;
@Override
protected Game createNewGameAndPlayers() throws GameException, FileNotFoundException {
Game game = new TwoPlayerDuel(MultiplayerAttackOption.LEFT, RangeOfInfluence.ONE, 0, 20);
@ -53,8 +52,8 @@ public abstract class CardTestPlayerBaseAI extends CardTestPlayerAPIImpl {
playerA = createPlayer(game, playerA, "PlayerA");
playerB = createPlayer(game, playerB, "PlayerB");
return game;
}
}
@Override
protected TestPlayer createPlayer(String name) {
if (name.equals("PlayerA")) {
@ -65,7 +64,7 @@ public abstract class CardTestPlayerBaseAI extends CardTestPlayerAPIImpl {
return super.createPlayer(name);
}
public void setAISkill(int skill) {
public void setAISkill(int skill) {
this.skill = skill;
}
}