In this program, as I understand it, the dog (Karel) can use the conditional "front_is_clear" and know what that means. In some code, the dog will move until it "sees" a wall in front of it and then it will stop. But not in all cases, and I don't know why.
1
u/hyongoup Sep 14 '24
How does the loop know when to end?
1
u/[deleted] Sep 15 '24
[removed] — view removed comment