Thursday, 2 April 2015

Post 3




This week, we began the recursion unit of the course, a unit that I was very much looking forward to. This was a topic that I found difficult to comprehend when learning about it in high school and I was looking forward to learning about it in a way that would allow me to effectively implement it in my progams. During the lab, I enjoyed tracing through each programs and found the activity to be the right balance of challenging but not frustrating. However, the final task, involving the creation of my own recursive method, was challenging. I did not complete the program during the lab time but I continued to work at it from home and I finally got it to work. The most effective way, I found, to approach designing a recursive method was to create cases starting with n = 1 and then creating more and more complicated cases and letting = 2 , 3 and so on, where n is the number of times the method would be called. I found that once I developed regular methods for the n = 4 cases and then comparing it to the previous ones, I was able to inductively generalize for all n and create a recursive program.

This week was also the week that we had to submit our assignments. I initially thought that the major parts of the assignment i.e. the classes and the subclasses for the game and strategy, would be the most difficult part, so I finished those parts early and left the rest of the work for later. However, when trying to bring all  the parts together in the game_view class, I encountered a lot of problems when trying to get each part to cohesively work together. I learned that for the next assignment, I should plan how the overall program will work first and then design each part instead of working on the smaller parts first to avoid overlaps in methods and leaving information out that was needed

No comments:

Post a Comment