All pastes #26248 Raw Edit

Someone

public text v1 · immutable
#26248 ·published 2005-10-22 05:44 UTC
rendered paste body
        TurnleftandMove(robbie);

		
			

	
	TurnLeft2(robbie);
	MoveRight(robbie);
	MoveRightmove(robbie);
	LeftmoveLeft(robbie);
	MoveRight(robbie);
	MoveRightmove(robbie);
	LeftmoveLeft(robbie);
	Move4(robbie);
	TurnleftandMove(robbie);


}

		private static void TurnRight(Robot r)
	{
			for(int i=0; i<3; i++)
			
			r.turnLeft();
			}

		private static void TurnleftandMove(Robot r)
	{
			for(int i=0; i<1; i++)
			r.turnLeft();
			Move2(r);
			r.turnLeft();
			Move2(r);
	}
		private static void TurnLeft2(Robot r){
			for(int i=0; i<2; i++)
			
			r.turnLeft();
		}

		private static void Move4(Robot r){
		for(int i=0; i<4; i++)
		      r.move(true);
                  if (r.canPickThing()){ r.pickThing(); }
		}

		private static void Move2(Robot r){
		for(int i=0; i<2; i++)
			r.move(true);
                  if (r.canPickThing()){ r.pickThing(); }
		}

		private static void MoveRight(Robot r){
			for(int i=0; i<1; i++)
				Move4(r);
				TurnRight(r);
		}


		private static void MoveRightmove(Robot r){
			for(int i=0; i<1; i++)
				
			r.move(true);
                  if (r.canPickThing()){ r.pickThing(); }
			TurnRight(r);
			Move4(r);
		}
	
		private static void LeftmoveLeft(Robot r){
			for(int i=0; i<1; i++)
			r.turnLeft();
			r.move(true);
                  if (r.canPickThing()){ r.pickThing(); }
			r.turnLeft();

		}