Advertisement
KUEM011

Untitled

Nov 22nd, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. package Lesson3;
  2. import kareltherobot.*;
  3. public class WindowBuilder extends Constructicons {
  4.     /**
  5.      *
  6.      * @param x
  7.      * @param y
  8.      * @param d
  9.      * @param b
  10.      */
  11.     public WindowBuilder(int x, int y, Direction d, int b){
  12.         super(x,y,d,b);
  13.     }
  14.  
  15.     /**
  16.      * Just a simple function to build the individual windows.
  17.      */
  18.     public void build(){
  19.         for(int index = 0; index < 4; index++){
  20.             beepNMove();
  21.             turnRight();
  22.         }
  23.     }
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement