# HG changeset patch # User William Morgan # Date 1406497850 25200 # Node ID 70423511f49d7befc8de974f63849663bc5158ff # Parent a482086958e1944ff515debd97998b27bef7935f gameState now runs in gcc to completion without runtime errors. diff -r a482086958e1 -r 70423511f49d code/gameState.lm --- a/code/gameState.lm Sun Jul 27 13:52:32 2014 -0700 +++ b/code/gameState.lm Sun Jul 27 14:50:50 2014 -0700 @@ -125,14 +125,14 @@ // 1.) movement res <- executeEvents: tick 1 events gameState events <- res value - gameState <- (res tail) value + gameState <- res tail print: 15 // 2.) actions res <- executeEvents: tick 0 events gameState - + print: #[19 res] events <- res value - gameState <- (res tail) value + gameState <- res tail print: 16 // 3.) collide pills powerpills fruit @@ -168,6 +168,7 @@ tick <- 1 events <- [ endOfLives: 0 + //moveLambdaman: 0 ] print: 6 gameState <- #[0 0] @@ -196,9 +197,27 @@ #[0 0] } - +/* main <- :initWorld ghostCode{ #[0 step] } +*/ + main <- { + print: (step: 0 #[ + //grid + [ + [0 0 0 0] + [0 2 2 0] + [0 1 0 0] + [0 0 0 0] + ] + //lmstate + #[0 #[1 2] 2 3 0] + //ghost state + [] + //fruit state + 0 + ]) + } }