Copy the permalink and press cancel, or replace by new one and press Update.
If you want to share your world (and corresponding challenges) with others, save it to a file and send it to Andre.Roberge@gmail.com, or use the permalink.
false are all written in lower cases.
False start with an upper case letter. To avoid having to
specify both possibilities each time, "true" and "false" will be used instead below.
at_goal(): condition which is "true" if Reeborg has reached "home"
at_goal_orientation(): condition which is "true" if Reeborg has the required orienation
build_wall(): adds a wall right in front of where Reeborg is
done(): instructs the program to stop (end) at that point.
front_is_clear(): "true" if no wall blocking Reeborg's way
has_token(): "true" if Reeborg carries at least one token
is_facing_north(): "true" if Reeborg is facing North (towards the top of the screen)
put("object")where object is one of
right_is_clear(): "true" if no wall is to the immediate right of Reeborg
repeat(f, n): executes ``f()`` n times
object_here(): "false" if there is no object at Reeborg's location, otherwise it returns the name of the object,
"star", or the number of tokens at that location.
take("object")where object is one of
token_here(): "true" if there is a token at Reeborg's location
To create additional robots, one can use
UsedRobot() preceeded by
In addition, the following commands are available and are not tied to any robot in particular.
import my_lib: for Python, includes the code found in the Library tab
inspect(object): shows result in Reeborg's Diary
pause(); can be called with an argument in milliseconds which indicates the time after which it will automatically resume.
sound("true"): turns sound on. Can be turned off by calling with no argument or with "false". Off by default or if delay between actions is less than 250ms.
think(number): sets the amount of time in milliseconds between each robot action.
write(string): write a string in Reeborg's Diary
select_world(string): selects a given world.
select_challenge(string): selects a given (hiddent) world.
print(string): only valid with Python. Somewhat equivalent to
To find out more, follow the lessons.
Inspired by Guido van Robot, itself inspired by the original Karel the Robot created by Richard Pattis, Reeborg first appeared in RUR-PLE, a program I created to learn Python, picking up programming as a hobby.
I hope you enjoy learning computer programming with Reeborg.
Feel free to contact me at Andre.Roberge@gmail.com
Reeborg is free and will remain free to use and to share under a Creative Commons License If you are using it to teach programming to students, you might want to make a copy of this site on a local server. Regardless, I would really appreciate if you would contact me as I would like to know where Reeborg's World is used (I do not track users).
If you find this site so useful and you want to do something to thank me, you have two choices:
The choice is yours :-)
I am just a self-taught programmer, with no training in web design, graphics, etc. I would gladly welcome any suggestions or contributions to
Bug reports are welcome!
My medium-term plans include:
Longer term plans include:
Audio samples from freesound, all chosen (and modified) from Creative Commons license 0 submissions.