Initial Commit
Initial commit
First test & feature: test if game is won
Added isDrawn and tests
First rule: that two in a row can win
Refactor: extracted player check to calling method so that the inner method can be re-used
Refactor: pulled out first rule logic into a rule base class and a subclass
I’ve broken a couple of tests but also implemented a new fork rule.
Fixed a test and fixed an issue with return values in tryPlay.
Fixed a couple of tests that I’d broken, and then fixed the implementation which was also broken :)
Removed extraneous NSLog call.
Refactor: changed from use of chars for players to actual objects, which means square items don’t need to be boxed/unboxed—much cleaner
Refactor: merged DTIWinRule and DTIBlockRule since there was a great deal of repeated code
Refactor: removed a couple of TODOs and extracted a method, renamed a variable too
Block fork rule
Added final set of (simple) rules and tests for those.
Initial game scene.
Better implementation of Game and its tests
Refactor: renamed DTIGameBoard.player to DTIGameBoard.computer
Refactor: split out long method