Hi all,
I'm trying to get GnuBG playing himself
using different METs.
On the mailing list archives I've found
a thread discussing this and using the
matchseries.py script that comes with
the gnubg distribs.
What I do is :
1 - start an instance of gnubg (command
line) and setup with following commands :
set
met "met\g11.xml"
set
player 0 name gnubg-g11
set
player 0 gnubg
set
player 1 name gnubg-snowie
external
127.0.0.1:10000
2- start an instance of gnubg (command
line) and setup with following commands :
set
met "met\snowie.xml"
set
player 0 name gnubg-g11
set
player 1 name gnubg-snowie
set
player 0 external 127.0.0.1:10000
External connection seems to work,
since on the 1st instance I get the following messages:
Waiting
for a connection from 127.0.0.1:10000...
Accepted
connection from 127.0.0.1.
Then I try tu use the matchseries.py
script doing:
Error (syntax error) near 'board'
Traceback (most recent call last):
File "???", line 3,
in ?
File "D:\Documents\gnubg-0.16\matchseries.py",
line 76, in playMatchSeries
matchInfo = formatMatchInfo(gnubg.match(analysis=0,
boards=0))
File "D:\Documents\gnubg-0.16\matchseries.py",
line 98, in formatMatchInfo
pw = game['info']['points-won']
KeyError: 'points-won'
I tried to investigate but I'm totally
lost. Also, I tried to issue these commands manually :
>>> gnubg.command('new match
1')
Are you sure you want to start a new
match, and discard the game in progress? ye
s
A new 1 point match has been started.
gnubg-g11 rolls 6, gnubg-snowie rolls
4.
GNU Backgammon Position
ID: 4HPwATDgc/ABMA
Match ID : MAEzAAAAAAAA
+-1--2--3--4--5--6-------7--8--9-10-11-12-+
O: gnubg-g11
| X
O | | O
X | 0 points
| X
O | | O
X | Rolled 64
|
O | | O
X |
|
O | |
X |
|
O | |
X |
|
|BAR|
|^ 1 point match (Cube: 1)
|
X | |
O |
|
X | |
O |
|
X | | X
O |
| O
X | | X
O |
| O
X | | X
O | 0 points
+24-23-22-21-20-19------18-17-16-15-14-13-+
X: gnubg-snowie
Error (syntax error) near 'board'
GNU Backgammon Position
ID: 4HPwATDgc/ABMA
Match ID : MAEzAAAAAAAA
+-1--2--3--4--5--6-------7--8--9-10-11-12-+
O: gnubg-g11
| X
O | | O
X | 0 points
| X
O | | O
X | Rolled 64
|
O | | O
X |
|
O | |
X |
|
O | |
X |
|
|BAR|
|^ 1 point match (Cube: 1)
|
X | |
O |
|
X | |
O |
|
X | | X
O |
| O
X | | X
O |
| O
X | | X
O | 0 points
+24-23-22-21-20-19------18-17-16-15-14-13-+
X: gnubg-snowie
Error (syntax error) near 'board'
And outside Python :
(gnubg-g11) new match 1
Are you sure you want to start a new
match, and discard the game in progress? y
A new 1 point match has been started.
gnubg-g11 rolls 4, gnubg-snowie rolls
3.
GNU Backgammon Position
ID: 4HPwATDgc/ABMA
Match ID : MAEuAAAAAAAA
+-1--2--3--4--5--6-------7--8--9-10-11-12-+
O: gnubg-g11
| X
O | | O
X | 0 points
| X
O | | O
X | Rolled 43
|
O | | O
X |
|
O | |
X |
|
O | |
X |
|
|BAR|
|^ 1 point match (Cube: 1)
|
X | |
O |
|
X | |
O |
|
X | | X
O |
| O
X | | X
O |
| O
X | | X
O | 0 points
+24-23-22-21-20-19------18-17-16-15-14-13-+
X: gnubg-snowie
Error (syntax error) near 'board'
What's going wrong ? It seems to happen
with both 0.15 and 0.16 ...