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: Joern Thyssen
Subject: Re: [Bug-gnubg] A question - Which die is still available during a move? - and a request
Date: Mon, 10 Feb 2003 17:53:18 +0000
User-agent: Mutt/1.4i

On Mon, Feb 10, 2003 at 05:57:49PM +0100, Holger wrote
> Hi,
> 
> 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.

Jørn




reply via email to

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