U E D R , A S I H C RSS

데블스캠프2005/RUR-PLE

1. 데블2005/RUR-PLE

  • : 01 남
  • : 데블

3.

  • : 4 5
  • 명 5
  • 5
  • 5 + 5
  • 명 + 5
  • 5
  • 벽 만들 5 + 20(문배, )
  • 5 + (10)
  • if문 + 5
  • not + (2) 40
  • while + (3) 10
  • sorting 문 120

4. RUR-PLE 란 ?

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

5.

5.1. 1

  • . .

5.2. 2

  • 람들 .

5.3. 3

  • .

6.

6.1. ?

  • Robot: Code and Learn .
  • .

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

6.1.1.

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

6.2. ?

  • .

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

6.2.1.

  • 2 리면 만들.

  • .


6.3. (beeper)

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



6.4. ?

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

6.5. 벽 만들~!

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

6.5.1.

  • 문배


  • 1 모.


6.6.

  • def 를 .

  • repeat 명 러번 (명 ) 방복 .

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

6.7. if 문

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

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



6.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 ..


6.8. not

  • not .

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

6.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

6.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 .


6.10. Amazing Part

  • . 면 놀 .
  • sorting 문 . Amazing

6.11. Sorting

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


  • sort0_2.wld .
  • .


  • sort1 .
  • 더 복 column .


  • sort2 는

7.

Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:28:58
Processing time 0.0396 sec