U E D R , A S I H C RSS

코드레이스/2007/RUR_PLE

1.

  • : 2
  • 명 10
  • 20
  • 15(6)
  • ,

2. RUR-PLE 란 ?

  • 를 배 만들 . 보면 . .
  • Python 를 배 .
  • Python 문 만, 몰 . . 변 . -_-
  • 는데 보면 는 만 -_-; 보면 . 만, 는 방 .( ..) .

3.

3.1. 1

  • . .

3.2. 2

  • 람들 .

3.3. 3

  • .

4.

4.1. ?

  • Robot: Code and Learn .
  • .

~cpp 
move()
turn_off()
  • Mp3 Play .
  • 면 test .
  • play .

4.1.1.

  • .
  • 르면 방 바뀐.
  • 르면 .

4.2. ?

  • .

~cpp 
move()
turn_left()
move()
turn_off()
  • .

4.2.1.

  • 2 리면 만들.

  • .


4.3. (beeper)

  • beeper를 .
  • beeper를 는 명 : pick_beeper()
  • beeper를 내 놓는 명 : put_beeper()
  • beepers1.wld .
  • .



4.4. ?

  • RUR-PLE .
  • Play Play 모 step into . 명 . 는 명 highlighting .
  • Play step into (play 는) .
  • step into
  • 는 빨

4.5. 벽 만들~!

  • . . 릭! 릭~! 벽들 만들 .

4.5.1.

  • 문배


  • 1 모.


4.6.

  • def 를 .

  • repeat 명 러번 (명 ) 방복 .

~cpp 
def turn_right():
    repeat(turn_left, 3)
  • 벽 만들 .

4.7. if 문

  • next_to_a_beeper() : beeper 면 true, 면 false를 .

~cpp 
if next_to_a_beeper():
    pick_beeper()
  • if문 , repeat를 .



4.7.1. else 문

  • front_is_clear() : 면 true, 면 false
  • left_is_clear() :
  • right_is_clear() :
  • else 문 .

~cpp 
def move_or_turn():
    if front_is_clear():
        move()
    else:
        turn_left()
  • . 방 . 5면 5*4=20 ..


4.8. not

  • not .

~cpp 
if not next_to_beeper():
    move()
else:
    turn_off()	

4.8.1.

  • 럼 만.


  • . . ..

~cpp 
# introducing vocabulary related to the problem
next_to_a_carrot = next_to_a_beeper
plant_carrot = put_beeper
pick_carrot = pick_beeper

def one_carrot_only():
    if not next_to_a_carrot():
        plant_carrot()      # replace missing seed
    else:
        pick_carrot()
        if not next_to_a_carrot(): # oops!
            plant_carrot()  # we had removed the only one

4.9. while

  • .

~cpp 
next_to_a_carrot = next_to_a_beeper
plant_carrot = put_beeper
pick_carrot = pick_beeper

def one_carrot_only():
    while next_to_a_carrot():
        pick_carrot()      # pick them all!
				
    plant_carrot()         # replant only one
  • harvest3.wld .
  • while문 2 .


4.10. Amazing Part

  • . 면 놀 .
  • sorting 문 . Amazing

4.11. Sorting

  • sort0_1.wld .
  • 만들면 .
  • 2 column .


  • sort0_2.wld .
  • .


  • sort1 .
  • 더 복 column .


  • sort2 는

5.

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:31:19
Processing time 0.0337 sec