When Karel is shipped from the factory, it responds to a very small set of commands. Lets try out the commands. Use the buttons bellow to get the "world" to match the "goal":
命令 | 描述 |
---|---|
move() | Karel向前移动一个格子。如果前方有墙阻挡,则无法执行。 |
turn_left() | Karel向左旋转90度。 |
pick_beeper() | Karel从当前格子捡起一个beeper,并放入它的beeper包中(beeper包容量无限)。只有当前格子里有beeper时才能执行。 |
put_beeper() | Karel从beeper包中取出一个beeper放在当前格子里。只有beeper包中有beeper时才能执行。 |