Mercurial > repos > icfp2014
diff code/ghost0.gq @ 69:8a0f1447c034
Implement plain if in gqc and use it in ghost0. This provides a small improvement in code size
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Sun, 27 Jul 2014 23:19:23 -0700 |
parents | f4f403c83e80 |
children |
line wrap: on
line diff
--- a/code/ghost0.gq Sun Jul 27 23:11:46 2014 -0700 +++ b/code/ghost0.gq Sun Jul 27 23:19:23 2014 -0700 @@ -10,7 +10,7 @@ } else: { if: dir = left { startX <- startX - 1 - } else: {} + } } startX } @@ -21,7 +21,7 @@ } else: { if: dir = down { startY <- startY + 1 - } else: {} + } } startY } @@ -99,7 +99,7 @@ //currently in fright mode, try to run away firstChoice <- opDir: firstChoice secondChoice <- opDir: secondChoice - } else: {} + }