Untitled
unknown
plain_text
4 years ago
493 B
12
Indexable
function start(){ buildTower(); turnRight(); checkWall(); } //this function makes karel to build a tower function buildTower(){ putBall(); turnLeft(); move(); putBall(); move(); putBall(); } function checkWall(){ if (frontIsClear()){ move(); turnRight(); move(); move(); turnLeft(); } else (frontIsBlocked()){ turnRight(); move(); move(); turnLeft(); } }
Editor is loading...