Langton's ant: Difference between revisions
Content added Content deleted
No edit summary |
(Added Erlang output) |
||
Line 1,470: | Line 1,470: | ||
plane_create_cell( Controller, Max_x, Max_y, Position ) -> erlang:spawn_link( fun() -> loop( #state{controller=Controller, max_x=Max_x, max_y=Max_y, position=Position} ) end ). |
plane_create_cell( Controller, Max_x, Max_y, Position ) -> erlang:spawn_link( fun() -> loop( #state{controller=Controller, max_x=Max_x, max_y=Max_y, position=Position} ) end ). |
||
</lang> |
</lang> |
||
{{out}} |
|||
<pre style="height:30ex;overflow:scroll"> |
|||
___________________________________________________________________##_______________________________ |
|||
____________________________________________________________________##______________________________ |
|||
_____________________________________________##__##____________###_##_#_____________________________ |
|||
____________________________________________#__##__###________####_#__#_____________________________ |
|||
___________________________________________#____##___#______##_##__#_#______________________________ |
|||
________________________________________##_#_____#_____#######_###_##_______________________________ |
|||
_______________________________________#__#__#___##_#___#__#####_#__#_______________________________ |
|||
______________________________________###___#___####__##_###_#______##______________________________ |
|||
___________________________________##_#_#__##__#___#_##__####_######________________________________ |
|||
__________________________________#__#___#____#_____##__##___#_#_#####_#____________________________ |
|||
_________________________________###_##__#__#____#___#####_#_##_#____###____________________________ |
|||
_________________________________##_____##_###___##_###___##_####__#__#_____________________________ |
|||
___________________________________###__###_#___#_#_###_____#__#____##______________________________ |
|||
_____________________________________#_#___#########_#####___####___________________________________ |
|||
_______________________________###_###__##_#__#______#___##__#______________________________________ |
|||
________________________________#####_#####__##___#####____#_#_#____________________________________ |
|||
_____________________________##_#_#######_###_######_#####_#_###____________________________________ |
|||
____________________________#____##__##___###__#__#__#__#___#_#_____________________________________ |
|||
___________________________###______###__#_##_##____#__#_##_#_______________________________________ |
|||
___________________________#_#__#____#____#_#####__#____#_##________________________________________ |
|||
________________________________##_###__#_#__##_##____#__#_#________________________________________ |
|||
____________________________#_#_____#_#_____#_#_##_#_#__###_##_#____________________________________ |
|||
___________________________#___###__#__#__#_#__####_##___##_####____________________________________ |
|||
___________________________#___##_###_##_#__#___#_____####_#_##_____________________________________ |
|||
___________________________#__##___###______#__####_###_##___##_____________________________________ |
|||
___________________________#______###_____###__###___##__#____#_____________________________________ |
|||
___________________________#_____#_#_#_####____####__##_##__________________________________________ |
|||
___________________________#_____##_###_##___#_##_####_###___#_#____________________________________ |
|||
___________________________#______#_#____#####_#_#_###_______###____________________________________ |
|||
___________________________#____####_#____###_##_###___#_#____#_____________________________________ |
|||
___________________________#_____#__##_##_##_####__##_##__####______________________________________ |
|||
___________________________#_____#_##_##__#____#######______________________________________________ |
|||
___________________________###___##__##__#_###_#_##_#___#___________________________________________ |
|||
___________________________###____##_######_#__#___####____#________________________________________ |
|||
____________________________#_##_#_##__##____####_#_##_####_#_______________________________________ |
|||
____________________________#___#######_######__#_##_#_#____#_______________________________________ |
|||
___________________________#___#___##_#__#___##_######__#__#________________________________________ |
|||
___________________________#_##____###__#___#_#######_#__##_________________________________________ |
|||
____________________________##_#_##___#_#_#_##_#__##__###___________________________________________ |
|||
_____________________________######_##__________#####___#___________________________________________ |
|||
_________________________________#___#__#####_#______#_#____________________________________________ |
|||
__________________________________##_____#_#_##___#____#____________________________________________ |
|||
_______________________________##_#__##_#_____##_#____###___________________________________________ |
|||
_______________________________#_##_#______#_#___#____###___________________________________________ |
|||
________________________________#___####_##___#___#____#____________________________________________ |
|||
________________________________###__#___#___###___####_____________________________________________ |
|||
________________________________#___##__##_##___#___________________________________________________ |
|||
___________________________________##__##__#___###__________________________________________________ |
|||
____________________________________##__#_##_##___#_________________________________________________ |
|||
_________________________________________##__#___###________________________________________________ |
|||
__________________________________________#_##_##___#_______________________________________________ |
|||
___________________________________________##__#___###______________________________________________ |
|||
____________________________________________#_##_##___#_____________________________________________ |
|||
_____________________________________________##__#___###____________________________________________ |
|||
______________________________________________#_##_##___#___________________________________________ |
|||
_______________________________________________##__#___###__________________________________________ |
|||
________________________________________________#_##_##___#_________________________________________ |
|||
_________________________________________________##__#___###________________________________________ |
|||
__________________________________________________#_##_##___#_______________________________________ |
|||
___________________________________________________##__#___###______________________________________ |
|||
____________________________________________________#_##_##___#_____________________________________ |
|||
_____________________________________________________##__#___###____________________________________ |
|||
______________________________________________________#_##_##___#___________________________________ |
|||
_______________________________________________________##__#___###__________________________________ |
|||
________________________________________________________#_##_##___#_________________________________ |
|||
_________________________________________________________##__#___###________________________________ |
|||
__________________________________________________________#_##_##___#_______________________________ |
|||
___________________________________________________________##__#___###______________________________ |
|||
____________________________________________________________#_##_##___#_____________________________ |
|||
_____________________________________________________________##__#___###____________________________ |
|||
______________________________________________________________#_##_##___#___________________________ |
|||
_______________________________________________________________##__#___###__________________________ |
|||
________________________________________________________________#_##_##___#_________________________ |
|||
_________________________________________________________________##__#___###________________________ |
|||
__________________________________________________________________#_##_##___#_______________________ |
|||
___________________________________________________________________##__#_#####______________________ |
|||
____________________________________________________________________#_#___####______________________ |
|||
_____________________________________________________________________##_###_#_______________________ |
|||
______________________________________________________________________#___##________________________ |
|||
</pre> |
|||
=={{header|Euphoria}}== |
=={{header|Euphoria}}== |