User Tools

Site Tools


turtle

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
turtle [2024/01/12 03:33] appledogturtle [2024/01/12 03:37] (current) appledog
Line 319: Line 319:
  
 There is no need to do that since they are just text files and text files are a well-established idiom on desktop PCs. There is no need to do that since they are just text files and text files are a well-established idiom on desktop PCs.
 +
 +=== 3. Expanding
 +Expanding the commands of the turtle could be interesting.
 +As a next-step project, depending on the student, we could add commands for color (and maybe alpha), then we could add commands for line width and maybe line patterns. We could also add commands for polygons, arcs, and circles.
 +
 +Beyond those basic drawing ideas the fun gets in when you add line numbers and GOTOs, and then flow control  like IF and so forth. Some fundamental questions to ask the student are, what changes (or what new commands) would we need to write in order to do something like the PONG game, but entirely in T (Turtle)? (Ex: A delay command, a "sheet" command, a switch-sheet command for animation, etc). What about reading the state of the pixel? Or a "goto (x,y)" command for the turtle? How interesting and complex can this become? There are many ideas and possibilities to explore!
turtle.txt · Last modified: 2024/01/12 03:37 by appledog

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki