Advertisement
KUEM011

Untitled

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