Ejemplo n.º 1
0
        public void Question2()
        {
            //  If the X position of tortoise is less than Y position of tortoise
            //  Turn the tortoise 54 degrees to the left
            //  Otherwise turn the tortoise 22 degrees to the right

            var x = Tortoise.GetX();
            var y = Tortoise.GetY();

            if (x < y)
            {
                Tortoise.Turn(-54);
            }
            else
            {
                Tortoise.Turn(22);
            }
        }