File:TurtleHouse.png

From J Wiki
Jump to navigation Jump to search

TurtleHouse.png(477 × 388 pixels, file size: 12 KB, MIME type: image/png)

Summary

F=: {{ (}:m),(_2{.m)+/ .*1 0,:n,1 }} NB. forward
L=: {{ (}:m),({:m)**^j.n*1r180p1  }} NB. left
R=: {{ (}:m),({:m)**^j.n*_1r180p1 }} NB. right

require'plot'
plot }: 0 1 F 1 L 90 F 1 L 30 F 1 L 120 F 1 L 30 F 1

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current15:30, 21 July 2022Thumbnail for version as of 15:30, 21 July 2022477 × 388 (12 KB)Raul Miller (talk | contribs)F=: {{ (}:m),(_2{.m)+/ .*1 0,:n,1 }} NB. forward L=: {{ (}:m),({:m)**^j.n*1r180p1 }} NB. left R=: {{ (}:m),({:m)**^j.n*_1r180p1 }} NB. right require'plot' plot }: 0 1 F 1 L 90 F 1 L 30 F 1 L 120 F 1 L 30 F 1

The following page uses this file:

Metadata