Saturday, March 7, 2015

Week 8, impressions

    Probably one of the biggest impressions of last week is assignment 2. Especially those cases when you were starring at your code and editing it along with Googling for hours trying to figure out why it doesn't work, and then making the method work by adding two lines to another method, which you would never think affects work of the not working method. For example method 1 didn't work properly because it called method 2, and method 2 called method 3, and even though method 3 works on its own, and method 2 works absolutely fine without being called by method 1, they don't work together.
    And then comes minimax. Works with subtract square, raises an error with tippy. What do you find out after starring at tippy for long enough? Method 3 from previous example, which you thought you fixed, doesn't work!!! When you finally make it not raise an error, it turns out minimax chooses the worst strategy instead of the best. Who knows why. Weird and scary things happen in programming sometimes.

No comments:

Post a Comment