diff src/sim.tp @ 45:9f1ca5ba2684

Discard entries for which we can easily tell that it will be impossible for them to be better than the current best. This allows us to terminate when we cannot solve the map
author Mike Pavone <pavone@retrodev.com>
date Sun, 15 Jul 2012 17:26:25 -0700
parents 0c09730c173e
children 5d2e59cbbc7c
line wrap: on
line diff
--- a/src/sim.tp	Sun Jul 15 17:21:27 2012 -0700
+++ b/src/sim.tp	Sun Jul 15 17:26:25 2012 -0700
@@ -196,6 +196,7 @@
 				waterproof <- 10
 				moves <- #[]
 				score <- 0
+				maxScore <- { score + (lambdaCount - (_robot collected)) * 25 + lambdaCount * 50 }
 				addPoints <- :points { score <- score + points }
 				ended <- {endreached}
 				succeeded <- {_succeeded}