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 <[email protected]> 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
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnubg
_______________________________________________
Bug-gnubg mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-gnubg