Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Lesson3;
- import kareltherobot.*;
- public class DoorBuilder extends Constructicons{
- /**
- * @param x
- * @param y
- * @param d
- * @param b
- */
- public DoorBuilder(int x, int y, Direction d, int b){
- super(x, y, d, b);
- }
- /**
- * None
- */
- public void build(){
- putBeeper();
- move();
- putBeeper(); //Function that allows the robot to turn the corners, and place the beepers in the right pattern for the wall.
- move();
- putBeeper();
- turnRight();
- move();
- putBeeper();
- move();
- putBeeper();
- turnRight();
- move();
- putBeeper();
- move();
- putBeeper();
- }
- }
Add Comment
Please, Sign In to add comment