Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package Lesson3;
- import kareltherobot.*;
- /**
- * Class for window builders. Extends constructicons. Very simple
- */
- public class WindowBuilder extends Constructicons {
- /**
- * Constructor
- * @param x
- * @param y
- * @param d
- * @param b
- */
- public WindowBuilder (int x, int y, Direction d, int b) {
- super(x, y, d, b);
- }
- /**
- * uses beepNMove. Functions and loops unnecessary for such a simple task
- */
- public void build(){
- beepNMove();
- putBeeper();
- turnLeft();
- move();
- putBeeper();
- turnLeft();
- move();
- beepNMove();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement