Turtletoy
31–40 of 65 posts
Re: Turtletoy
#32https://github.com/jncraton/connectiongrammar
The "API" is admittedly quite poor currently, as I just quickly hacked this together on top of NLTK, but I was able to put together some fun results.
Re: Turtletoy
#33They developed their own declarative language for generating art.
Re: Turtletoy
#34Re: Turtletoy
#35This line in particular stands out: const code = String(work).trim().split("{").slice(1).join("{").slice(0, - 1).trim().replace("/0/", _turtlevmapi).replace("/1/", strCode);
It looks like the author is injecting the turtle code written by the user into a "work" function that removes dangerous objects (XMLHttpRequest, WebSocket, etc).
Can someone with experience writing a VM in JS point to a good reference on the topic?
Re: Turtletoy
#36If you like this project, you may be interested in a similar project that I did a while back using using the turtle interpretation of grammars to represent connections between LEGO bricks: https://github.com/jncraton/connectiongrammar The "API" is admittedly quite poor currently, as I just quickly hacked this together on top of NLTK, but I was able to put together some fun results.
Re: Turtletoy
#37Earlier quoted context omitted.
I am reminded of what i believe is the same thing constantly and can never find it. I always thought it was called something like Sodaracer but searches have been unsuccessful. I remember evolution algorithms to make the fastest amoeba wheels. EDIT: soda constructor by sodaplay. http://maciejmatyka.blogspot.com/2018/02/soda-constructor-re... EDIT2: from that link, here is a playable open source recreation linked at t…
Thank you for finding this! Me and my siblings used to play with this for hours.
Re: Turtletoy
#38Ahhh, love this site. I own an axidraw pen plotter, and because I'm feeling generous, I'll print every sketch made by people in this HN thread. <3
I fear the method I used here will be really inefficient on a pen plotter though: https://turtletoy.net/turtle/63b170ed47 (Lots of useless moves happen while the pen is up)
http://imgur.com/gallery/7PmEM5p
It didn't take too long, the pen up movements were fine
Re: Turtletoy
#39Earlier quoted context omitted.
I fear the method I used here will be really inefficient on a pen plotter though: https://turtletoy.net/turtle/63b170ed47 (Lots of useless moves happen while the pen is up)
Theeere you go! http://imgur.com/gallery/7PmEM5p It didn't take too long, the pen up movements were fine
http://imgur.com/gallery/UjtiQXy
This plot took about 3 minutes in total, the gears one took about 15.
Re: Turtletoy
#40Earlier quoted context omitted.
Theeere you go! http://imgur.com/gallery/7PmEM5p It didn't take too long, the pen up movements were fine
Oh, and here's a hyperlapse of the plot, I started recording about 20 seconds in. http://imgur.com/gallery/UjtiQXy This plot took about 3 minutes in total, the gears one took about 15.