bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] suggestions


From: Øystein Johansen
Subject: Re: [Bug-gnubg] suggestions
Date: Thu, 04 May 2006 21:22:18 +0200
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

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

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]