I have had students create a maze and then they have to write an algorithm using directions to complete the maze. If it’s a large maze, they can quickly become frustrated at the time it takes. Then I introduce repeat statements to make the process quicker. Then I introduce if/then statements to make it even more streamlined (eg. if you can’t go forward, then turn left.).
Building it slowly allows students to see how code can be more streamlined, even though it can work in multiple ways.
You must log in to post a comment.