All pastes #253195 Raw Edit

Mine

public text v1 · immutable
#253195 ·published 2006-11-20 14:18 UTC
rendered paste body
//Name: Albee James
//Date: November 20, 2006
//Assignment: Assignment 7
//Purpose: To become familiar with the different actions and usages of the robot

//Importing the robot
import becker.robots.*;

public class Everest
{
  public static void main(String [] args)
  {
//Creating the city
   City Everest = new City();
   CityFrame frame = new CityFrame(Everest);
//Creating Karel, the robot
   Robot Karel = new Robot(Everest, 2, 4, Directions.EAST);
//Creating the Canadian Flag
   Thing Canadianflag = new Thing(Everest, 4, 4);
//Creating the walls for Mt.Everest
   Wall bottomLeft = new Wall(Everest, 5, 4, Directions.WEST);
   Wall ledge1 = new Wall(Everest, 5, 4, Directions.NORTH);
   Wall middleLeft = new Wall(Everest, 6, 3, Directions.WEST);
   Wall topLeft = new Wall(Everest, 6, 2, Directions.WEST);
   Wall top = new Wall(Everest, 6, 2, Directions.NORTH);
   Wall topRight = new Wall(Everest, 6, 2, Directions.EAST);
   Wall ledge2 = new Wall(Everest, 7, 3, Directions.NORTH);
   Wall middleRight = new Wall(Everest, 7, 3, Directions.EAST);
   Wall bottomRight = new Wall(Everest, 7, 4, Directions.EAST);
   
//The code for Karel to climb the mountain, put the flag on the top, and go back down the mountain
   Karel.move();
   Karel.move();
   Karel.pickThing();
   Karel.turnLeft();
   Karel.move();
   Karel.turnLeft();
   Karel.turnLeft();
   Karel.turnLeft();
   Karel.move();
   Karel.turnLeft();
   Karel.move();
   Karel.move();
   Karel.turnLeft();
   Karel.turnLeft();
   Karel.turnLeft();
   Karel.move();
   Karel.putThing();
   Karel.move();
   Karel.turnLeft();
   Karel.turnLeft();
   Karel.turnLeft();
   Karel.move();
   Karel.turnLeft();
   Karel.move();
   Karel.turnLeft();
   Karel.turnLeft();
   Karel.turnLeft();
   Karel.move();
   Karel.move();
   Karel.turnLeft();
   Karel.move();   
  }
}