From: Erik V. <eri...@hc...> - 2005-03-04 20:33:15
|
> Being able to craft some quick test cases for moving the > marker around and checking the results via console > is the first end-goal for the stockmarket class. The StockChart moveXxxx() methods already write the moves to System.out, if that is what you want. (I guess this will later be replaced by writing to a log). > >1. In theory we might be able to make one StockMarket class that can > >handle all varieties (linear, rectangular and hexagonal) > >but I think we can better split up into generic and special classes. > > As was mentioned before, linear is just rectangular with a > single row. No special class needed there. I noticed that. The question still is (not just here but in general): how many different variants are we prepared to cram in one class? Maybe I have a tendency to subclass (too) early and (too) often... > >Hexagonal is rare (I believe 1837 only) so it's special anyway. > >We might also consider linear stockmarkets special, because > >so few games have it (AFAIK only the Tresham games and 1860). > > I wouldn't focus too much on getting a hexagonal stockmarket > working just yet. So long as the generic class is > capable of allowing implementation of these later, that's fine. Sure, 1837 is a *very* long term goal (frankly I'm not convinced that we get even 1830 out of the door, but that does not depress me. It's a hobby!). Erik. |