Assignment 2 was really difficult. Although most of the assignment (TippyMove and most of TippyGameState) was straightforward, we had major difficulties with the StrategyMinimax class and the TippyGameState.rough_outcome() method. My group and I simply were unable to properly implement these two problems despite over 20 hours of struggling with these two problems.
For rough_outcome, an ideal version of our helper function would count how many 'X's and 'O's there were in an n x m grid. If there were more 'X's in a grid, then that would increment the "advantage" count for 'X'. Similarly, the "advantage" count for 'O' would increase if there were more 'O's. I still don't know why the code didn't work which is very bad.
I still completely agree with my post about recursion on week 5. I only intellectually understand recursive functions once I have already read the code. However, I am still very far off from intuitively thinking recursively. However, I have made progress from week 5. I noticed seeing recursive functions in MAT137 (Calculus!) with recursive sequences. In linear algebra, the determinant can also be defined recursively which is really neat. I even saw this online.

No comments:
Post a Comment