Langton's ant: Difference between revisions
Content added Content deleted
Line 1,665: | Line 1,665: | ||
[[File:LangtonsAnt.png|right|thumb|Output]] |
[[File:LangtonsAnt.png|right|thumb|Output]] |
||
<lang mathematica> |
<lang mathematica>direction = 1; |
||
⚫ | |||
direction = 1; |
|||
NestWhile[ |
|||
⚫ | |||
⚫ | |||
{50, 50}, 1 <= Min@# <= Max@# <= 100 &]; |
|||
position += {Re@#, |
|||
⚫ | |||
⚫ | |||
⚫ | |||
=={{header|OCaml}}== |
=={{header|OCaml}}== |