src/main/java/org/teachingkidsprogramming/recipes/completed/section05recursion/RecursiveSquare.java
private static void makeASquare(double length)
  {
    //  If the current length is greater than 10 --#10.2
    if (length > 10)
    {
      //    Run the recipe moveToTheSquareStart with the current length  --#4.3
      moveToTheSquareStart(length);
      //
      //    Do the following 4 times --#7.1 
      for (int i = 0; i < 4; i++)
      {
        //      Move the Tortoise the current length  
        Tortoise.move(length);
        //      MakeASquare with the current length divided by 1.7 (recipe below)--#11.3  
        makeASquare(length / 1.7);
        //          If the current process count is less than 3 (HINT: use 'i') --#9
        if (i < 3)
        {
          //            Turn the tortoise 90 degrees to the right
          Tortoise.turn(90);
          //
        }
        //  End Repeat --#7.2  
      }
      //  MoveBackToCenter with the current length (recipe below)--#5.3 
      moveBackToCenter(length);
      //  Set the current length to the current length times two --#10.1
      length = length * 2;
    }
    //  End of makeASquare recipe
  }
private static void makeASquare(double length)
  {
    //  If the current length is greater than 10 --#10.2
    if (length > 10)
    {
      //    Run the recipe moveToTheSquareStart with the current length  --#4.3
      moveToTheSquareStart(length);
      //
      //    Do the following 4 times --#7.1 
      for (int i = 0; i < 4; i++)
      {
        //      Move the Tortoise the current length  
        Tortoise.move(length);
        //      MakeASquare with the current length divided by 1.7 (recipe below)--#11.3  
        makeASquare(length / 1.7);
        //          If the current process count is less than 3 (HINT: use 'i') --#9
        if (i < 3)
        {
          //            Turn the tortoise 90 degrees to the right
          Tortoise.turn(90);
          //
        }
        //  End Repeat --#7.2  
      }
      //  MoveBackToCenter with the current length (recipe below)--#5.3 
      moveBackToCenter(length);
      //  Set the current length to the current length times two --#10.1
      length = length * 2;
    }
    //  End of makeASquare recipe
  }
private static void makeASquare ( double length ) { //  If the current length is greater than 10 --#10.2 if ( length > 10 ) { //    Run the recipe moveToTheSquareStart with the current length  --#4.3 moveToTheSquareStart ( length ) ; // //    Do the following 4 times --#7.1  for ( int i = 0 ; i < 4 ; i ++ ) { //      Move the Tortoise the current length   Tortoise . move ( length ) ; //      MakeASquare with the current length divided by 1.7 (recipe below)--#11.3   makeASquare ( length / 1.7 ) ; //          If the current process count is less than 3 (HINT: use 'i') --#9 if ( i < 3 ) { //            Turn the tortoise 90 degrees to the right Tortoise . turn ( 90 ) ; // } //  End Repeat --#7.2   } //  MoveBackToCenter with the current length (recipe below)--#5.3  moveBackToCenter ( length ) ; //  Set the current length to the current length times two --#10.1 length = length * 2 ; } //  End of makeASquare recipe }
Create the makeASquare recipe --#11.1
Create the makeASquare recipe -- #11 . 1