Unit 5 - Lesson 12 Extension

Does anyone have a example solution of the extension for this traversals make?

It is adding sounds for the condition.

Thanks in advance.

I just picked random sounds and only coded up a couple conditions, but this should give you an idea how to complete it!

You are essentially adding an IF / ELSE IF statement to the updateScreen function. Let me know if need any more help!

Thanks for the feedback that is very close to what I did too. I just thought there had to be another way, and Iā€™m offering it for extra credit, so I am excited to see what the kids come up with.

2 Likes