Monday, 9 March 2015

Make up Slog for my Slacking

Hey everyone,

I want to start by apologizing for my absence. I know we computer scientist are lazy, but that is no excuse to not be posting! (We are lazy because we try to find the easiest way to do the hardest task) So here I am :)

I will talk about objects today. The recent why I want to talk about objects is because of my recent assignment. We worked with this "tippy" based game where the winner is whoever makes a "tippy" pattern in an n x n grid. How do objects intertwine with all of this? We had to do an object for a game instance where the status of that game is constantly being updated as the object it is. However, the interesting part was when I created a separate class for making moves within the game. I created a whole additional class that took a game instance as a parameter. I think I lacked this idea in my first assignment. With the help of the starter code provided in this assignment, I realized this idea of being able to manipulate these objects (gameinstances) using objects that take gameinstances as parameters.

But here is where I failed with the second assignment. I took the idea of making a class for making moves which takes a game instance, but I failed to do that for our minimax strategy. I should have better followed the instructions to see that this is what they were truly demanding when trying to apply minimax strategy. I will talk about my minimax experience in the following slog because that is a whole other ordeal.

If I was able to better understand that objects can easily take other objects as parameters, I would have been able to better fit the strategy into my game. That way I can just constantly update new gameinstance without accidentally creating a new game instance. The object at hand will be the only object that I will be working with.

Thank you,
your lazy computer scientist  -- Boris :)

No comments:

Post a Comment