comparison 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
comparison
equal deleted inserted replaced
44:0c09730c173e 45:9f1ca5ba2684
194 water <- 0 194 water <- 0
195 flooding <- 0 195 flooding <- 0
196 waterproof <- 10 196 waterproof <- 10
197 moves <- #[] 197 moves <- #[]
198 score <- 0 198 score <- 0
199 maxScore <- { score + (lambdaCount - (_robot collected)) * 25 + lambdaCount * 50 }
199 addPoints <- :points { score <- score + points } 200 addPoints <- :points { score <- score + points }
200 ended <- {endreached} 201 ended <- {endreached}
201 succeeded <- {_succeeded} 202 succeeded <- {_succeeded}
202 succeeded! <- { 203 succeeded! <- {
203 endreached <- true 204 endreached <- true