Unit 5 lesson 4, a student made code and it doesn’t work and I can’t figure out what the bug is. Feedback appreciated. https://studio.code.org/projects/applab/LtAu6jjIzLjL_KzJB3yNAVuMTTQLXUGfUcsE1UMguSk
Thank you!
Unit 5 lesson 4, a student made code and it doesn’t work and I can’t figure out what the bug is. Feedback appreciated. https://studio.code.org/projects/applab/LtAu6jjIzLjL_KzJB3yNAVuMTTQLXUGfUcsE1UMguSk
Thank you!
@jlegatt Thanks for posting this request. Finding bugs can be a frustrating experience at times. However, your teacher account has access to an example solution on the right side of your screen. Please see the image below.
Looking at the Example Solution, you will see that your student has a number of logical errors in each of the onEvent functions.
The leftButton onEvent function needs the least changes (one).
The rightButton onEvent needs two adjustments.
The updateScreen function needs a number of changes that will allow it to work appropriately.
Please also encourage your student to use comments to help with code organization.
I hope the solution helps with the debugging process. Please let us know if you need further assistance.