Unit9 Lesson2 Before After function main() { while(frontIsClear()){ move(); if(beepersPresent()){ findBeeper(); } } } function findBeeper(){ turnLeft(); while(frontIsClear()){ move(); if(noBeepersPresent()){ putBeeper(); } } turnAround(); while(frontIsClear()){ move(); } turnLeft(); }
Unit8 Lesson2 Before After function main() { moveToWall(); } function moveToWall(){ while(frontIsClear()) { move(); } } Lesson3 Before After function main() { putBeeper(); putBeeperLine(); } function putBeeperLine(){ while(frontIsClear()) { move(); putBeeper(); } } Lesson5 Before After function main(){ while(leftIsClear()){ putBeeperLine(); reset(); moveUp(); } putBeeperLine(); } function putBee..
Unit6 Lesson1 Before After function place50Beepers() { repeat(50) { putBeeper(); } } function main() { move(); place50Beepers(); move(); }
단계 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(); }
단계 Lesson2 Before After function turnAround() { turnLeft(); turnLeft(); turnLeft(); turnLeft(); } function main(){ move(); putBeeper(); turnAround(); move(); turnAround(); }
Unit3 Lesson3 Before After function main(){ move(); move(); move(); } Lesson4 Before After function turnRight(){ turnLeft(); turnLeft(); } function main(){ turnLeft(); move(); turnRight(); move(); } Lesson5 Before After function main(){ putBeeper(); move(); putBeeper(); move(); putBeeper(); move(); putBeeper(); } Lesson6 Before After function main() { move(); pickBeeper(); pickBeeper(); pickBeep..
내 블로그 - 관리자 홈 전환 |
Q
Q
|
---|---|
새 글 쓰기 |
W
W
|
글 수정 (권한 있는 경우) |
E
E
|
---|---|
댓글 영역으로 이동 |
C
C
|
이 페이지의 URL 복사 |
S
S
|
---|---|
맨 위로 이동 |
T
T
|
티스토리 홈 이동 |
H
H
|
단축키 안내 |
Shift + /
⇧ + /
|
* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.