It is not your imagination (That the function is missing), and it has
been asked for previously (Bob Koca pointed it out the last time). I
haven't done specific programming within gnubg to expose functions in
pyhton, but I think one would probably look at gnubgmodule.c and take
a function that does exist like PythonPositionID (positionid) and
model a matchid from it. If you search for PythonPositionD in that
file you should be able to get some ideas that may help you.
On 17-Apr-10, at 6:51 AM, stormen wrote:
Are there any plans to do this ?
The bits for cubevalue, cubeownership, crawford flag, score can
easily be
obtained from gnubg.cubeinfo(), but to me it seems tedious to get
all the
remainng bits for constructing the matchid from the match data
structure
when I want the resulting Python function to return the matchid of the
position at wherever one has navigated to in a match after analysis.
I normally code in Java and am completely new to Python, but if
someone
provides a quick roadmap for what's needed, I am guessing very
little, I
will give it a shot if anyone else would find a gnubg.matchid()
function
useful.
--
View this message in context:
http://old.nabble.com/Including-function-to-get-matchid-in-the-gnubg-Python-module.-tp28275947p28275947.html
Sent from the Gnu - Backgammon mailing list archive at Nabble.com.
_______________________________________________
Bug-gnubg mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnubg
_______________________________________________
Bug-gnubg mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnubg