package org.teachingkidsprogramming.section02methods;

import org.teachingextensions.logo.Tortoise;
import org.teachingextensions.logo.utils.ColorUtils.PenColors;

public class PyramidsOfGiza
{
  public static void main(String[] args) throws Exception
  {
    setUpPyramidLand();
    Tortoise.turn(-90);
    Tortoise.move(220);
    Tortoise.turn(135);
    Tortoise.move(100);
    Tortoise.turn(90);
    Tortoise.move(100);
    Tortoise.turn(-90);
    Tortoise.move(100);
    Tortoise.turn(90);
    Tortoise.move(100);
    Tortoise.turn(-90);
    Tortoise.move(100);
    Tortoise.turn(90);
    Tortoise.move(100);
    Tortoise.turn(135);
    Tortoise.move(210);
  }
  private static void setUpPyramidLand()
  {
    Tortoise.show();
    Tortoise.setSpeed(10);
    Tortoise.getBackgroundWindow().setBackground(PenColors.Blues.AliceBlue);
    Tortoise.setPenColor(PenColors.Yellows.DarkGoldenrod);
    Tortoise.setPenWidth(2);
    Tortoise.hide();
  }
}

@@ -269,24 +269,153 @@
 amidLand();%0A
+    makePyramid1();%0A    makePyramid2();%0A    makePyramid3();%0A  %7D%0A  private static void makePyramid3()%0A  %7B%0A    Tortoise.move(100);%0A
     Tortoise
@@ -412,33 +412,32 @@
   Tortoise.turn(
--
 90);%0A    Tortois
@@ -447,10 +447,10 @@
 ove(
-22
+10
 0);%0A
@@ -465,32 +465,101 @@
 oise.turn(135);%0A
+    Tortoise.move(210);%0A  %7D%0A  private static void makePyramid2()%0A  %7B%0A
     Tortoise.mov
@@ -643,34 +643,55 @@
 ;%0A  
-  Tortoise.move(100);%0A 
+%7D%0A  private static void makePyramid1()%0A  %7B%0A
    
+ 
 Tort
@@ -692,32 +692,33 @@
   Tortoise.turn(
+-
 90);%0A    Tortois
@@ -716,34 +716,34 @@
   Tortoise.move(
-10
+22
 0);%0A    Tortoise
@@ -740,35 +740,35 @@
   Tortoise.turn(
--90
+135
 );%0A    Tortoise.
@@ -847,34 +847,10 @@
 urn(
-135);%0A    Tortoise.move(21
+-9
 0);%0A

separated PyramidsOfGiza.java into 3 methods