mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
[Simulated AI] Stop recursing when we've found a winning move already.
This commit is contained in:
@@ -50,7 +50,7 @@ public class SimulationController {
|
||||
}
|
||||
|
||||
public boolean shouldRecurse() {
|
||||
return getRecursionDepth() < MAX_DEPTH;
|
||||
return bestScore.value != Integer.MAX_VALUE && getRecursionDepth() < MAX_DEPTH;
|
||||
}
|
||||
|
||||
private Plan.Decision getLastDecision() {
|
||||
|
||||
Reference in New Issue
Block a user