Just wanted to share a cool little extra credit component to the Face It activity. The level 3 activity asks students to use variables to store the number and length of sides for the polygon, calculate the angle the root needs to turn and draw it. I added a few more requirements:
- The code needed to randomly choose the number of sides (4,12) and be stored in the sides variable.
- Using Elif statements, students needed to change the length of the sides based on the randomly chosen # of sides since the larger polygons would be drawn off the page if the size was the same for the smaller polygons that fit the face.
I attached one of the student’s code to see it in action. Face It was a great activity! I love how easy it was to customize it as well.
Michelle
Alyssa Crane - Extra Credit Face.vrpython (15.3 KB)