Hasty Briefsbeta

Bilingual

Show HN: C-TURTL, a turtle graphics game

4 months ago
  • #programming
  • #creative-coding
  • #turtle-graphics
  • Instructions to move a turtle by encoding actions in its DNA.
  • F: Move the turtle forward.
  • L: Rotate the turtle 45° left (counter-clockwise).
  • R: Rotate the turtle 45° right (clockwise).
  • B: Create a baby turtle.
  • P: Make the turtle poop.
  • C: Clean up the poop.
  • Turtle dies at the end of its DNA sequence.
  • Baby turtles restart execution from the beginning of the DNA.
  • Turtles are represented as squares (■).
  • Inspired by Isabel Beach's L-systems and Turtle Graphics, and Susam Pal's CFRS.
  • Source code and examples available on GitHub.