Sunday, November 23, 2014

Week 13

This week has been pretty eventful. I successfully submitted my last undergraduate programming assignment! It was "Life." The assignment, much like Darwin, the previous one, consisted of a board. However, in this assignment each cell had an object (in Darwin there could be empty cells, which meant null values). Some values could hold a status of 'dead' and others were 'alive' but the whole board had some type of cell in each position. Looking back, I think that implementing AbstractCell, FredkinCell, and ConwayCell was relatively easy, you just had to have a good grasp about inheritance and virtual functions in C++. It was really interesting. Implementing the Life class got a little more complicated but I actually thought that the meat of the project was implementing the Cell class, which acted as a Handle class. From what I got, the objective of a Handle Class is to separate the abstraction from the implementation and provide a smooth transition between different types (in this case, when it is appropriate to do so, the Cell class switches a FredkinCell to a ConwayCell).

As far as class goes, we have one more day of class (tomorrow) and then comes the final week, which means last-midterm week. I am relatively nervous because I did not do as well as I had hoped in the first midterm so I will definitely change my studying method for this one so that I can get a better grade. That week I will also be interviewing in Seattle so it will be kind of tough to balance but such is life!

No comments:

Post a Comment