Module SensorPack
In: karel/sensor_pack.rb

A mixin to add sensing capabilities to robots such as UrRobot. Including this in a class will enable the robots to sense walls and beepers, as well as other robots. A robot with these capabilities will be able to test the direction it is facing. All of these methods return true or false.

Methods

Public Instance methods

Return true if the robot has any beepers in its beeper bag

Return true if the robot is facing East

Return true if the robot is facing North

Return true if the robot is facing South

Return true if the robot is facing West

Return true if the robot is not facing a wall one half block away

Return true if the robot is on a corner with at least one beeper

Return true if the robot on a corner with at least one other robot

[Validate]