[Karel] Unit5

단계


Lesson1

Before After
function turnRight(){
   turnLeft();
   turnLeft();
}

function turnaround(){
   turnLeft();
   turnLeft();
   turnLeft();
   turnLeft();
}

function main(){
   move();
   move();
   turnRight();
   move();
   turnLeft();
   move();
   pickBeeper();
   turnAround();
   move();
   turnRight();
   move();
   turnLeft();
   move();
   putBeeper();
   move();
   turnAround();
}

'Algorithm > Karel' 카테고리의 다른 글

[Karel] Unit9  (0) 2022.05.23
[Karel] Unit8  (0) 2022.05.23
[Karel] Unit6  (0) 2022.05.23
[Karel] Unit4  (0) 2022.05.23
[Karel] Unit3  (0) 2022.05.23