bug-gnubg
[Top][All Lists]
Advanced

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

[Bug-gnubg] Snowie .txt export files


From: Jim Segrave
Subject: [Bug-gnubg] Snowie .txt export files
Date: Sun, 16 Feb 2003 00:44:31 +0100
User-agent: Mutt/1.2.5.1i

On Sat 15 Feb 2003 (09:31 -0500), address@hidden wrote:
> In a message dated 15/02/2003 11:11:47 GMT Standard Time, address@hidden 
> writes:
> > Useful ones would be:
> > Pos 151 has a two cube for gnu and dice for snowie
> > pos 153 has a gnu man on the bar and gnu has the dice
> > pos 154 has 2 snowie men on the bar
> > pos 155 has a two cube for snowie
> 
> I have attached these.

Yes - that clarified some
> > 
> > I couldn't find any positions where there are chequers off, but if you
> > have some (or could set some up), then the snowie version and an sgf
> > or gnu pos id or even an ascii board would be good.
> 
> I have attached this together with ascii board.

Thanks - it apears that like .sgf, chequers are considered off if they
aren't somewhere else

> > Ideally, we could complete this if you have snowie by creating some
> > positions and sending me the text format and the position for (all of
> > these could be the starting position, to minimise the amount of work
> > to set them up or describe what the snowie text output represents
> 
> These are all starting positions with bottom player (GNU) on roll.

Thank you very much

> > a money game position with Jacoby disabled and the same position with
> > it enabled (if snowie allows this_
> > a match position where the two sides have different scores in a match
> > to say 7 or so.
> > the same position in a match with the crawford rule disabled (if
> > snowie allows this)
> 
> I can't see an option for this in Snowie
> 
> > a position in a match where the game is crawford and crawford is
> > enabled
> 
> 
> 
> > a position in a match where the game is post-crawford and crasford is
> > enabled
> > a position (money or match) where the cube has been offered but not
> > yet taken/dropped
> > 
> > There doesn't seem to be a way to export this with the cube showing as 
> > pending.
> 
> > a position (money or match) where a resignation has been offered but
> > not yet taken/dropped
> 
> There seems to be a bug in Snowie here. I have emailed them to see what up.
> 
> > a position where a double has been beavered and the doubler has yet to
> > reply
> > 
> 
> There doesn't seem to be an option to do this in Snowie. Again I have emailed 
> them.

OK - most of a .txt file makes sense to me (I think):

The files are a single line with fields separated by
semicolons. Fields are numeric, except for player names.

Field no    meaning
0           length of match (0 in money games)
1           1 if Jacoby enabled, 0 in match play or disabled
2           Don't know, all samples had 0. Maybe it's Nack gammon or
            some other variant?
3           Don't know. It was one in all money game samples, 0 in
            match samples
4           Player on roll 0 = 1st player
5,6         Player names
7           1 = Crawford game
8,9         Scores for player 0, 1
10          Cube value
11          Cube owner 1 = player on roll, 2 = centred, -1 opponent
12          Chequers on bar for player on roll
13..36      Points 1..24 from player on roll's point of view
            0 = empty, positive nos. for player on roll, negative 
            for opponent
37          Chequers on bar for opponent
38.39       Current roll (0,0 if not rolled)

The attached perl script takes a snowie .txt file on stdin and writes
a .sgf file to stdout (Unix users could chmod it and run it as a
command, under Windows I assume you need to do 

C:> perl < snowie.txt > gnubg.sgf

I tried all the positions Micheal sent me and they all appear to be
correct in the output (the ones from Gammonline postings match the
posted ones),


-- 
Jim Segrave           address@hidden

Attachment: sw2sgf
Description: Text document


reply via email to

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