Reflection – 28, Jan 2017

The beginning of the year started off well, and I would give myself a Great, but… This is because on the days with a substitute, I often got distracted from my work by other classwork or I wasn’t focused on the task at hand.

I have completed a few quests, working especially hard on the Turtle ones. It has usually takes me a long time to figure out the quests. The one I am currently working on is the TurtlPies and TurtlFlowers. Figuring out how to input a number of sides was easy, but creating a function that will create equal number of pieces within the shape has proved more difficult. This is the code I have come up with recently.

world.clear()
bob=Turtle(world)
bob.delay=.001
def turtlepies(t,n):
   for i in range(n):
            degrees=360.0/n
       fd(t,(400/n))
       rt(t,degrees)
turtlepies(bob,n)

This one was for creating the original shape. In an attempt to create on with pieces, I focused on the hexagon and came up with this code, which creates a pie for the hexagon, but not other shapes. I am still tweaking it.

world.clear()
bob = Turtle(world)
bob.delay=.05
def turtlepies(t,n):
   for i in range(n):
            degrees=360.0/n
       fd(t,(400/n))
       rt(t,degrees)
def piepiece(t,n):
   rt(bob,120-(360/n))     
   fd(bob,400/n)
   rt(bob,120)
   fd(bob,400/n)
   for i in range(n-2):
            rt(bob,180)
            fd(bob,400/n)
            rt(bob,120)
            fd(bob,400/n)
turtlepies(bob,6)
piepiece(bob,6)

I also completed a few of the sheep quests, and those are a little more confusing and take more time. When I need a break from the Gnimmargorp quests, I will head over to Codebat and complete a few of the problem there.

My prior goal was to complete the Turtle Quests, and although I have not finished all of them, I have gotten significantly closer. It has taken more time than I assumed, and I have also been working on a few other quests as well.

My new goal will be the same as my old goal. To finish the Turtle quests. There are only three more quests, and I think I can finish them, or at least be on the the last one, by the time I have to complete another reflection.

One thought on “Reflection – 28, Jan 2017”

  1. Solid, Aubri. I particularly like your persistence and your strategy for giving yourself a break when you need it, but still focusing on programming skills.

    Keep up the good work, and remember that sometimes, asking a good question about your problem may be all the stimulus your brain needs in order to solve it on your own. The mere act of formulating the question somehow gives you insight into the problem!

Leave a Reply

Your email address will not be published. Required fields are marked *