Jacques Frechet's CS20c Project Source:Four-Dimensional Tic-Tac-Toe |
|
Here is a rough diagram of the class heirarchy. Red lines indicate composition (A uses B), while blue indicates inheritance (B is an A). Click on a class name to see the source.
The main applet class is class TTTT.
The diagram leaves out the gritty details of the relationship between the user-interface stuff on the left and the game engine stuff on the right. In fact, class SymTabBox is in charge of actually setting up and starting a new game, since it knows what the players are.
The image map was hastily constructed using xpaint and Michael Chiang's nifty Java client-side image map editor, while the HTML versions of the class files were done by this Perl script. It's still a bit flaky, which is why some of the methods and such aren't linked correctly -- but hey, it sure beats doing it by hand.