Book
Module 8 - Section 2 - Shape up
Module 8 - Section 2 - Shape up
Completion requirements
View
After the completion of this module the students will be able to:
- create custom made functions to navigate edison robot
- describe what is a Flow Chart in programming
- explain the use of a Flow Chart in programming
- predict the outcome of a Flow Chart in every case
8.2.1 - Shapes
Can you draw shapes using your edison and a marker?
For a first challenge try to draw a square.
You must remember to use a for loop and range command.
If you want a little hint look at the following code:
for i in range(4):
Ed.PlayBeep()
Ed.TimeWait(1, Ed.TIME_SECONDS)
So what code is needed do move drawing a square?
Do 4 times the following:
- Move forward in some distance
- Spin 90 degrees (to the left (or right))
Try to draw a triangle or a hexagon.
What if you want to draw a circle?