bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] A question - Which die is still available during a move?


From: Holger
Subject: Re: [Bug-gnubg] A question - Which die is still available during a move? - and a request
Date: Mon, 10 Feb 2003 23:51:51 +0100

On Mon, 10 Feb 2003 17:53:18 +0000, Joern Thyssen wrote:
> On Mon, Feb 10, 2003 at 05:57:49PM +0100, Holger wrote
> > I'm trying to write a feature that helps users new to backgammon by
> > indicating the possible target points for a move.
> > 
> > What I still need to know is whether there has been moved already a
> > chequer and with which die. Are there any variables (or functions)
> > that hold information about which die/dice were already used and which
> > are still available during a move? It should be accessible from within
> > board_pointer() in gtkboard.c.  I hope that some information about
> > this is already kept, else I'd need to add some bookkeeping logic.
> 
> No, unfortunately not.
> 
> The current board (with any internediate move) is stored in points[28].
> To check if a move is partial or completed gtkboard calls GenerateMoves.

Thanks, Joern. For me it's a pity that GNUbg determines valid moves in
a different way because I definitely don't have the overall view of
the source. What I've done so far just concentrated on a few local
points, and thus was easy. Anyway, I'll just have to make up
something. :-)

Regards,

        Holger




reply via email to

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