bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] python module available?


From: Michael Petch
Subject: Re: [Bug-gnubg] python module available?
Date: Thu, 31 Dec 2009 14:47:52 -0700

There is no standalone module but you can run python scripts from gnubg using the command line (cli) using the -p parameter and a scriptname. This will allow a python script to interface with the engine. If you run the cli version of gnubg you can use the > (greater than sign) to drop to a python shell. With this you can work interactively including querying gnubg python help with help(gnubg)

Sent from my iPhone

On 2009-12-31, at 14:33, Mark Higgins <address@hidden> wrote:

I'm coding up my own little backgammon simulator in python and want to benchmark it against gnubg. I was hoping there's a gnubg python module I can install and import that would expose the underlying engine so I can pass my generate boards and dice rolls into it, and have it return the set of possible moves ordered by what it thinks expected point scores are - that sort of thing.

Does such a module exist? I googled around a bit but didn't find anything.




_______________________________________________
Bug-gnubg mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-gnubg





reply via email to

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