A long time ago, there was a language called LOGO that taught programming by instructing the computer to draw shapes by controlling a turtle on the screen. Students learned basic concepts such as variables, recursions, and loops.
This assignment is inspired by LOGO. I have used this assignment with the following languages:
- Python: The turtle library is built in
- Java: You can get a turtle library from Aplu
- Snap: A fork of Scratch by UC Berkley that allows users to fill shapes with color
You can probably use other languages too but you’ll need to find a library that does Turtle Graphics. Please share in the comments if you found a library for other languages.
Before starting this assignment, students were taught variables, conditional statements, loops, and methods. Students were encouraged to make more complicated shapes based on the combining several basic shapes together.
I have included an assignment description as well as the source code of the example shown in the video.
The source code is released under the MIT License. The assignment is released under the Creative Commons Attribution ShareAlike 4.0 International License.
If you like my work, a small donation or feedback will be much appreciated.