bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Crash running a commad file. Python Example


From: Michael Petch
Subject: Re: [Bug-gnubg] Crash running a commad file. Python Example
Date: Mon, 03 Jun 2013 00:11:57 -0600
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130509 Thunderbird/17.0.6

A simply python example of what you are doing could look something like
the attached file

Python is already embedded inside of GNUBG, so no need to install python
separately. From a command line you could do something like:

"C:\Program Files (x86)\gnubg\gnubg-cli.exe" -q -p
"C:\path\to\43Z-reply.py" >c:\path\to\outputfile.txt

This will run the python script with gnubg-cli with sound turned off.
All the output will be directed to a specified output file. It is
important to use full path names.

Inside the script file you can also specify the path to save all the SGF
file for each of the positions that get analyzed.

This was quick and dirty, but might give you an example of what can be
achieved with some python code.

-- 
Michael Petch
GNU Backgammon Developer
OpenPGP FingerPrint=D81C 6A0D 987E 7DA5 3219 6715 466A 2ACE 5CAE 3304

Attachment: 43Z-reply.py
Description: Text document


reply via email to

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