From 6ebca24394fcf90281333ab4edbeb6ef48a89a72 Mon Sep 17 00:00:00 2001 From: Joseph Walton-Rivers <jwalto@essex.ac.uk> Date: Thu, 11 Jun 2015 15:16:22 +0100 Subject: [PATCH] don't spawn a million games --- src/battle/SimpleBattle.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/battle/SimpleBattle.java b/src/battle/SimpleBattle.java index 5ea51a7..cd717ec 100644 --- a/src/battle/SimpleBattle.java +++ b/src/battle/SimpleBattle.java @@ -27,7 +27,8 @@ public class SimpleBattle { static int nTicks = 1000; static int pointsPerKill = 10; static int releaseVelocity = 5; - static boolean visible = true; + + boolean visible = true; ArrayList<BattleController> controllers; @@ -129,6 +130,7 @@ public class SimpleBattle { state.objects = copyObjects(); state.stats = copyStats(); state.currentTick = currentTick; + state.visible = false; //stop MCTS people having all the games :p state.s1 = s1.copy(); state.s2 = s2.copy(); -- GitLab