Mercurial > repos > icfp2014
view code/simple.lm @ 23:5ded24518dc5
Add library functions from mike00.lm to dotScanner.lm. Add some code to process map state into a "grid" structure and make a version for visited state.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Fri, 25 Jul 2014 22:37:53 -0700 |
parents | 84f595cff062 |
children |
line wrap: on
line source
#{ counterLoad <- 4 step <- :myState world { move <- myState value counter <- (myState tail) - 1 if: counter = 0 { move <- move + 1 counter <- counterLoad if: move = 4 { move <- 0 } else: {} } else: {} #[#[move counter] move] } main <- :initWorld mystery { print: mystery #[#[0 counterLoad] step] } }