Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * This program builds a house
- * by: Alejandro Antorcha
- */
- package Lesson3;
- import kareltherobot.*;
- public class Lesson3Activity4 implements Directions{
- public static void main(String[] args) {
- World.readWorld("Lesson3World4.kwld");
- World.setDelay(10);
- World.setVisible();
- WallBuilder WallOne = new WallBuilder(1,2,North, 5);
- WallBuilder WallTwo = new WallBuilder(1,10,North, 5);
- WindowBuilder WindowOne = new WindowBuilder(5,5,North, 4);
- WindowBuilder WindowTwo = new WindowBuilder(5,8,North, 4);
- DoorBuilder Doorer = new DoorBuilder(1, 7, North, 9);
- RoofBuilder Roofer = new RoofBuilder(5,1,North, 11);
- WallOne.build();
- WallTwo.build();
- WindowOne.build();
- WindowTwo.build();
- Doorer.build();
- Roofer.build();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement