Sign InCoursewareNuggetsTutorials CoursesCodePad

Ninja Turtle

Turtles from turtle graphics only have limited capabilities such as drawing a circle with the circle method.

Can you design a class NinjaTurtle which can do a lot more?

Use your own creativity and imagination to empower your Ninja Turtle. Here are some ideas:

  • Make NinjaTurtle a child of turtle.Turtle class.
  • Implement methods to draw common shapes, such as rectangles, regular polygons, and stars.
  • Implement a method tree to draw a tree using your defined shapes.
  • Implement a method house to draw a house using your defined shapes.

Use your NinjaTurtle class to draw an interesting picture.

© CS Wonders·About·Gallery·Fun Facts·Cheatsheet