Cymen Vig

Software Craftsman

Day three at 8th Light

I completed the koans yesterday however I wasn’t happy with a few solutions. I reviewed one of these with Doug and we tried to come up with a cleaner solution however it didn’t really seem possible. Or at least nothing cleaner came from either of our minds. This is normally where I move on and let the subconscious take a crack at it.

The next assignment is to work on a ruby implementation of tic tac toe that is:

  • fully tested

  • uses classes that follow the single responsibility principle (SRP)

  • can be played on the console

  • can choose who goes first (computer or human)

  • uses MiniMax algorithm for the computer player