Karel must find the middle of a 5x5 grid. Solution:
I won't give you the exact code for "Karel's Race" or "The Super Cleanup." But I will give you the that works for every single Karel exercise on CodeHS.
function moveUpAndReverse() turnLeft(); move(); turnLeft();
The first puzzle required Alex to instruct Karel to move a certain number of steps. Alex wrote:
These are the first hurdles. If you are stuck here, do not move on to advanced problems.
function cleanRow() while (frontIsClear()) safeTakeBall(); move();