Christian Anthon wrote: > On Thu, May 04, 2006 at 08:18:41PM +0200, Øystein Johansen wrote: > Could you elaborate a bit. I don't understand what feature it is and > would like to know what the bad design is.
It's the move record and match record data structure that has a bad design. To set up a positon is like adding a move record with the move type 'set board' and then another move record with 'set matchid'. Each node in the move record is union. The move record and match record works like a linked list. So if you you want to satrt a new 'position' there has to be a match record, and there has to be a game record inside that list, and there has to be the to move records of type 'set board' and 'set matchid'. (I've once thought of a data structure redesign, which where based on glib lists. (Maybe that can simplyfy the gtkgamelist as well?) I didn't get so far that I implemented this design, and it probably has some flaws as well. This is much work anyway.) -Øystein
signature.asc
Description: OpenPGP digital signature
_______________________________________________ Bug-gnubg mailing list [email protected] http://lists.gnu.org/mailman/listinfo/bug-gnubg
