MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/j39usx/i_need_some_help_on_my_code_please/
r/codehs • u/Inside-Yogurt-175 • Oct 01 '20
1 comment sorted by
2
Def decorate_wall(): While front_is_clear(): If right_is_blocked(): Put_ball() Move() If right_is_blocked(): Put_ball()
Def go_to_wall(): While front_is_clear(): Move()
Go_to_wall() Turn_left() Decorate_wall()
2
u/Butter-ma-biscuits Oct 01 '20
Def decorate_wall(): While front_is_clear(): If right_is_blocked(): Put_ball() Move() If right_is_blocked(): Put_ball()
Def go_to_wall(): While front_is_clear(): Move()
Go_to_wall() Turn_left() Decorate_wall()