Mercurial > repos > icfp2012
comparison src/sim.tp @ 42:21b14768ea00
removed comments.
author | William Morgan <bill@mrgn.org> |
---|---|
date | Sun, 15 Jul 2012 14:48:05 -0700 |
parents | 20327ae2120b |
children | 1f583d85c8ed |
comparison
equal
deleted
inserted
replaced
41:20327ae2120b | 42:21b14768ea00 |
---|---|
259 } else: { | 259 } else: { |
260 if: (el eq: (cellTypes lambda)) { | 260 if: (el eq: (cellTypes lambda)) { |
261 _lambdaCount <- _lambdaCount + 1 | 261 _lambdaCount <- _lambdaCount + 1 |
262 } | 262 } |
263 } | 263 } |
264 | |
265 | |
266 // adding a 'new' method to robot and doing this instead | |
267 // wolud allow me to treat robots and other cellTypes equaly | |
268 // particularly for adding methods or state to other cellTypess. | |
269 // | |
270 // if: (el = (cellTypes robot)) { | |
271 // robot <- el new: | |
272 // (ret grid) set: index robot | |
273 // robot mine!: ret | |
274 // ret updatePos: robot index | |
275 // nextGrid append: el | |
276 // } else: { | |
277 // nextGrid append: el | |
278 // } | |
279 | |
280 } | 264 } |
281 ret | 265 ret |
282 } | 266 } |
283 | 267 |
284 fromStr <- :str { | 268 fromStr <- :str { |