Class | RobotWorld |
In: |
karel/robot_world.rb
karel/tk_robot_world.rb |
Parent: | RobotWorldBase |
A graphical robot world based on tk graphics. Interacts with KarelWindow.
This two dimensional structure has the following properties. Every other row and every other column is initially blank. Each cell is a three char string. Odd numbered rows are initially blank, Even numbered columns are initially blank. The first row will be imaged at the bottom of the output. The first column at the left. The blank rows and columns will eventually hold symbols for walls. Only one symbol can appear in a cell. The entries for corners "." are added first with beepers next and finally robots. The last symbol added is the one shown when the display is printed.
Print a representation of the world including robots to std out. Robots will hide beepers and only
one robot can be shown on a corner.
Print a representation of the world including robots to std out. Robots will hide beepers and only
one robot can be shown on a corner.