Lesson 1
Lesson one just teaches you about the back, forward, open existing file, and home page buttons. It also talks about the language selector all though English and spanish are the only supported languages.
Lesson 2
In lesson 2 i learned how to get to "the robot world" by clicking on : Robot: code and learn.
Lesson 3: moving
To move you use
move()
turn_off()
the parenthesis signal a command. you have to have the turn off part otherwise he complains. and you also have to use an underscore for a space during a command other wise it is wrong.
move()
turn_off()
the parenthesis signal a command. you have to have the turn off part otherwise he complains. and you also have to use an underscore for a space during a command other wise it is wrong.
move2 | |
File Size: | 0 kb |
File Type: | move2 |
Lesson 4: wrong move
if you are moveing rurple you have to use a lower case m, so it should look like this
move()
if it has an upper case m it is wrong.
move()
if it has an upper case m it is wrong.
rong_move | |
File Size: | 0 kb |
File Type: | rong_move |
Lesson 5: comments and changing language
to put in a comment you use a # because it signals that this is not a command so it could look something like this.
# My comment
And to change the language he uses to move you simply put:
avance=move
avance()
turn_off()
avance means move in french so now i could put avance instead of move
# My comment
And to change the language he uses to move you simply put:
avance=move
avance()
turn_off()
avance means move in french so now i could put avance instead of move
language_and_comment | |
File Size: | 0 kb |
File Type: | language and comment |
Lesson 6: turning left
to make him turn left you use
turn_left()
there is no command that turns him right
you also learn about the graph/ reeborgs world (reeborg is the name of the robot).
turn_left()
there is no command that turns him right
you also learn about the graph/ reeborgs world (reeborg is the name of the robot).
turning_left | |
File Size: | 0 kb |
File Type: | turning left |
Lesson 7: beepers
a beeper is something for reeborg to pick up and put down to place a beeper on the grid u just left click on a corner of the grid and then a little list of numbers and when you click on one it places a beeper.
beepers | |
File Size: | 0 kb |
File Type: | beepers |
Lesson 8: bugs
bugs are basically a screw up in the code and on rurple if there is a bug or error the robot puts up a message that is complaining about it
i also learned that you can pause the command that it is on (the command that is being issued is highlighted) by pressing pause. there is also a button that makes it so you can do one command and then it pauses.
i also learned that you can pause the command that it is on (the command that is being issued is highlighted) by pressing pause. there is also a button that makes it so you can do one command and then it pauses.
lesson 9: walls
a wall is a barrier that you cant get past and you use them to make a maze or a course for reborg to get through.
ribbon | |
File Size: | 0 kb |
File Type: | ribbon |
newspaper1.rur | |
File Size: | 0 kb |
File Type: | rur |
hurdles1_sol.rur | |
File Size: | 0 kb |
File Type: | rur |
maze1_sol.rur | |
File Size: | 0 kb |
File Type: | rur |
Lesson 10: repetitions
This lesson teaches you how to make a short cut... except i already new how to make one. anyways instead of using three lefts to make a right, you make a shortcut called turn_right()
and to do the that you have to use a definition so it would look like this
def turn_right():
turn_left()
turn_left()
turn_left()
and then you can use turn_right() instead of using 3 turn_left()'s
its all the same for whatever you want to make a short cut for.
and to do the that you have to use a definition so it would look like this
def turn_right():
turn_left()
turn_left()
turn_left()
and then you can use turn_right() instead of using 3 turn_left()'s
its all the same for whatever you want to make a short cut for.
stair_short_cuts.rur | |
File Size: | 0 kb |
File Type: | rur |
Lesson 11: repetitions again
In lesson 11 it teaches you how to avoid repetitions in a more detailed way. in lesson 10 you learn how to teach reborg to turn right with one command but you have to define it and show what it is (turning left three times) but in lesson 11 you learn how to make it even shorter, let me show you.
def turn_right():
repeat(turn_left, 3)
so using repeat() makes it even shorter and faster.
def turn_right():
repeat(turn_left, 3)
so using repeat() makes it even shorter and faster.
Lesson 12: if reborg could decide
so up till now we have chose what reborg does but now we learn how to let him decide on his own. by using if you can let reborg decide on his own. there are still some complications but you will understand when you look at the file
reborg_decides | |
File Size: | 0 kb |
File Type: | reborg decides |
Lesson 13: else
on this lesson you learn that you use if and else to say something like: if reborg is on beeper pick it up otherwise keep moving, but it should look like this
if on_beeper():
pick_beeper()
else:
move()
if on_beeper():
pick_beeper()
else:
move()
else | |
File Size: | 0 kb |
File Type: | else |