mirror of
https://github.com/correl/mage.git
synced 2025-03-07 20:53:18 -10:00
Fixed Issue#39: Vile Rebirth or Revive always fizzles when cast by AI
This commit is contained in:
parent
f1f2d7640f
commit
1454cbb3c8
1 changed files with 2 additions and 1 deletions
|
@ -103,7 +103,7 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
|
|||
public ComputerPlayer6(String name, RangeOfInfluence range, int skill) {
|
||||
super(name, range);
|
||||
maxDepth = skill * 2;
|
||||
maxThink = skill * 300;
|
||||
maxThink = skill * 3;
|
||||
maxNodes = Config2.maxNodes;
|
||||
getSuggestedActions();
|
||||
this.actionCache = new HashSet<String>();
|
||||
|
@ -423,6 +423,7 @@ public class ComputerPlayer6 extends ComputerPlayer<ComputerPlayer6> implements
|
|||
});
|
||||
pool.execute(task);
|
||||
try {
|
||||
System.out.println("maxThink:" + maxThink);
|
||||
return task.get(maxThink, TimeUnit.SECONDS);
|
||||
} catch (TimeoutException e) {
|
||||
logger.info("simulating - timed out");
|
||||
|
|
Loading…
Add table
Reference in a new issue