Anonymous user
Langton's ant: Difference between revisions
m
→{{header|M2000 Interpreter}}
Line 4,314:
Local Doc$, i, j
Document Doc$
for i=1 to N:for j=
Doc$=if$(rect(j,i)=White->"_","#")
next
Line 4,330:
{{out}}
<pre style="height:30ex;overflow:scroll">
______________________________________________________________________#_#___________________________
_____________________________________________________________________#_#_##_________________________
____________________________________________________________________##_###_#________________________
___________________________________________________________________#_###_####_______________________
__________________________________________________________________##__#_#####_______________________
_________________________________________________________________#_##_##___#________________________
________________________________________________________________##__#___###_________________________
_______________________________________________________________#_##_##___#__________________________
______________________________________________________________##__#___###___________________________
_____________________________________________________________#_##_##___#____________________________
____________________________________________________________##__#___###_____________________________
___________________________________________________________#_##_##___#______________________________
__________________________________________________________##__#___###_______________________________
_________________________________________________________#_##_##___#________________________________
________________________________________________________##__#___###_________________________________
_______________________________________________________#_##_##___#__________________________________
______________________________________________________##__#___###___________________________________
_____________________________________________________#_##_##___#____________________________________
____________________________________________________##__#___###_____________________________________
___________________________________________________#_##_##___#______________________________________
__________________________________________________##__#___###_______________________________________
_________________________________________________#_##_##___#________________________________________
________________________________________________##__#___###_________________________________________
_______________________________________________#_##_##___#__________________________________________
______________________________________________##__#___###___________________________________________
_____________________________________________#_##_##___#____________________________________________
____________________________________________##__#___###_____________________________________________
___________________________________________#_##_##___#______________________________________________
__________________________________________##__#___###_______________________________________________
_________________________________________#_##_##___#________________________________________________
________________________________________##__#___###_________________________________________________
___________________________________##__#_##_##___#__________________________________________________
__________________________________##__##__#___###___________________________________________________
_______________________________#___##__##_##___#____________________________________________________
_______________________________###__#___#___###___####______________________________________________
_______________________________#___####_##___#___#____#_____________________________________________
______________________________#_##_#______#_#___#____###____________________________________________
______________________________##_#__##_#_____##_#____###____________________________________________
_________________________________##_____#_#_##___#____#_____________________________________________
________________________________#___#__#####_#______#_#_____________________________________________
____________________________######_##__________#####___#____________________________________________
___________________________##_#_##___#_#_#_##_#__##__###____________________________________________
__________________________#_##____###__#___#_#######_#__##__________________________________________
__________________________#___#___##_#__#___##_######__#__#_________________________________________
___________________________#___#######_######__#_##_#_#____#________________________________________
___________________________#_##_#_##__##____####_#_##_####_#________________________________________
__________________________###____##_######_#__#___####____#_________________________________________
__________________________###___##__##__#_###_#_##_#___#____________________________________________
__________________________#_____#_##_##__#____#######_______________________________________________
__________________________#_____#__##_##_##_####__##_##__####_______________________________________
__________________________#____####_#____###_##_###___#_#____#______________________________________
__________________________#______#_#____#####_#_#_###_______###_____________________________________
__________________________#_____##_###_##___#_##_####_###___#_#_____________________________________
__________________________#_____#_#_#_####____####__##_##___________________________________________
__________________________#______###_____###__###___##__#____#______________________________________
__________________________#__##___###______#__####_###_##___##______________________________________
__________________________#___##_###_##_#__#___#_____####_#_##______________________________________
__________________________#___###__#__#__#_#__####_##___##_####_____________________________________
___________________________#_#_____#_#_____#_#_##_#_#__###_##_#_____________________________________
_______________________________##_###__#_#__##_##____#__#_#_________________________________________
__________________________#_#__#____#____#_#####__#____#_##_________________________________________
__________________________###______###__#_##_##____#__#_##_#________________________________________
___________________________#____##__##___###__#__#__#__#___#_#______________________________________
____________________________##_#_#######_###_######_#####_#_###_____________________________________
_______________________________#####_#####__##___#####____#_#_#_____________________________________
______________________________###_###__##_#__#______#___##__#_______________________________________
____________________________________#_#___#########_#####___####____________________________________
__________________________________###__###_#___#_#_###_____#__#____##_______________________________
________________________________##_____##_###___##_###___##_####__#__#______________________________
________________________________###_##__#__#____#___#####_#_##_#____###_____________________________
_________________________________#__#___#____#_____##__##___#_#_#####_#_____________________________
__________________________________##_#_#__##__#___#_##__####_######_________________________________
_____________________________________###___#___####__##_###_#______##_______________________________
______________________________________#__#__#___##_#___#__#####_#__#________________________________
_______________________________________##_#_____#_____#######_###_##________________________________
__________________________________________#____##___#______##_##__#_#_______________________________
___________________________________________#__##__###________####_#__#______________________________
____________________________________________##__##____________###_##_#______________________________
___________________________________________________________________##_______________________________
__________________________________________________________________##________________________________
</pre >
|