Go Home
Medium · Functions
Karel is lost somewhere in the room and could be facing any direction. Bring Karel home to the bottom-left corner.
First turn until Karel faces west (facingWest() helps), walk to the wall, then turn south and walk to the wall again. Finish the walkToWall function and use it twice. Each world starts Karel in a different spot.
Next: Build Two Towers