mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Don't recurse if the game is already over.
This commit is contained in:
@@ -184,7 +184,7 @@ public class GameSimulator {
|
|||||||
debugPrint = true;
|
debugPrint = true;
|
||||||
printDiff(origLines, simLines);
|
printDiff(origLines, simLines);
|
||||||
|
|
||||||
if (recursionDepth < MAX_DEPTH) {
|
if (recursionDepth < MAX_DEPTH && !simGame.isGameOver()) {
|
||||||
System.out.println("Recursing DEPTH=" + recursionDepth);
|
System.out.println("Recursing DEPTH=" + recursionDepth);
|
||||||
System.out.println(" With: " + sa);
|
System.out.println(" With: " + sa);
|
||||||
SpellAbilityPicker sim = new SpellAbilityPicker(simGame, aiPlayer);
|
SpellAbilityPicker sim = new SpellAbilityPicker(simGame, aiPlayer);
|
||||||
|
|||||||
Reference in New Issue
Block a user