import kareltherobot.Robot; public class BiggerBrains extends Robot { public BiggerBrains(int street, int avenue, Direction direction, int beepers) { super(street, avenue, direction, beepers); } /** * Postcondition: Robot must be left in the original * location and direction * @return whether there is a beeper on the left */ public boolean beeperIsToLeft() { turnLeft(); move(); if (nextToABeeper() ) { turnLeft(); turnLeft(); move(); turnLeft(); return true; } turnLeft(); turnLeft(); move(); turnLeft(); return false; } public void faceEast() { } public boolean twoBeepersOnCornerOrMore() { return true; } }