| [ next ] [ prev ] [ contents ] | XP-Cinti TDD Workshop |
Our customer gave us this for our first story ...
Marketing reseach as determined that a computer game targetted toward fishermen of the great NorthWest would be a big hit (something to do with all the extra time these folk have on their hands). We're not exactly sure what kind of game would be appropriate, but it will be based upon a Net-like playing surface.
Imagine a rectangular fishing net. It consists of a grid of lines (rope) running vertically and horizontally. Each intersection of the grid is identified by its coordinate location. The top/leftmost location is (1,1) and we need to support up to location (5,5).
A knot can be tied at any intersection, or an intersection can be left untied.
We need to develope a "Net" object that models this behaviour with the following methods ...
| [ next ] [ prev ] [ contents ] | Copyright 2003 by Jim Weirich.![]() |