Sudoku 5: Objects Begin to Emerge
The code is beginning to ask for some help. We’re processing a simple array of cells instead of an object, and the classes don’t feel cohesive. Let’s push some methods off to new classes and see what happens.
July 13, 2006
Categories:
Articles
The code is beginning to ask for some help. We’re processing a simple array of cells instead of an object, and the classes don’t feel cohesive. Let’s push some methods off to new classes and see what happens.
July 9, 2006
Categories:
Articles
I’ve read a bit more about Sudoku, and even played part of a game. Plus, the ideas of others in the lists and in email have me thinking. Should I try some of these ideas … or not? UPDATED: My strategy conclusion is wrong!
July 8, 2006
Categories:
Articles
A little more explanation of what I’m up to, and a test of a method that actually figures out what could go in a cell. Whee!
July 7, 2006
Categories:
Articles
A number of people on the tdd list have reported having a lot of fun TDD programming the game of Sudoku. I’ve not played the game, though of course I’ve tripped over the piles of books in the bookstores and at the airport. But discussion of the thing makes it sound like it might be fun to TDD on it, as people are saying. Let’s get started.
At the Agile Developer Skills course at the Raikes School, I commented that we don’t usually test accessors. But we test everything. Is this a contradiction?
Jon Bettinger has found a failing test! Excellent!