Sunday, February 16, 2014

Towers of Cheeses


        This week, I spent a lot of time on Assignment even if I have been worked on it for two weeks.  The Assignment one is the most complicated one that I have ever faced. Compared to the assignment I have worked in last semester, this one is much more difficult that the combination of the all. 
        Luckily, I have two great partners, who are known on piazza. Although we faced many times of barriers, we solved the each by looking discussing board and try lots of codes together. Everyone has his specialty, so all of us are pivots for the assignment. We enjoy this time and we decide to do the Assignment two together.
        The A1’s handout is clear and guides us on the right truck. We could always know how much percent we have done through the whole. TOAHModel is the first part in A1 and occupied the most of marks, but I really think Tour is the most difficult part. For TOAHModel, we quickly decided to make the stack as a dictionary, so the cheeses would be stored to the stools that are keys here. Then, we write the methods we need. However, it is not that easy to finish this part. Sometime we are confused whether the method is need or not, move. First, I support to write the move method in the ConsoleController, but I change my mind after arguing with my partners. We write the function in TOAHModel and just call it in the ConsoleController. The rest part of ConsoleController is much easier and funny. We try to make us game looks modern and we love playing our game. Furthermore, we play the tower game with different number of cheeses in order to find the rule of how the minimum moves happened. To be honest, there is no exaggerated that we try the game more than hundred times. Nonetheless, I enjoy it. 

Friday, February 7, 2014

Recursion


         I have learned about recursion for weeks as long as increasing the complexity. When I realize that I still feel difficult with doing lab this week, I know I need to pay more attention on it. There are steps for me to learn.
        What is recursion? Recursion means, “defining something in terms of itself”, which is that generally functions can call themselves.
        I read the reading about drawing fractals, which is similarly with the example shown in class. Then I learn the recursion deeper through the order in the reading posted by instructor: recursive date structures, processing recursive number lists, case study.
        Honestly, I am attracted in recursion now due to animated fractal, using PyGame. There are many beautiful graph made by using recursion, like kinds of tree and snowflake.