bug-gnubg
[Top][All Lists]
Advanced

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

RE: [Bug-gnubg] Joining or including .sgf games


From: Albert Silver
Subject: RE: [Bug-gnubg] Joining or including .sgf games
Date: Wed, 30 Jul 2003 18:43:58 -0300

Your suggestion to look at it with a text editor gave me an idea. I
figured I'd just edit the move alone in the notation. To make it easier
to identify, I erased the analysis of the move and the ones following it
(of course using a backup of the file). The thing is I have no idea what
the codes that follow it mean so I cannot enter the correct move played.
Here is the relevant part:

;B[63rxux]A[0][rxux E 0.6825 0.0246 0.0001 0.0324 0.0003 0.2682 2C 0 1
0.0000][lrlo E 0.5816 0.0232 0.0007 0.0544 0.0009 0.0567 2C 0 1
0.0000][qwru E 0.5235 0.0313 0.0004 0.0999 0.0019 -0.1147 2C 0 1
0.0000][lrru E 0.5223 0.0399 0.0004 0.0595 0.0005 -0.1079 0C 0 1
0.0000][rxru E 0.5218 0.0436 0.0004 0.1033 0.0008 -0.1397 0C 0 1
0.0000][rxsv E 0.5050 0.0374 0.0004 0.1264 0.0012 -0.2030 0C 0 1
0.0000][qwux E 0.5054 0.0318 0.0003 0.1255 0.0010 -0.2068 0C 0 1
0.0000][lrux E 0.4720 0.0307 0.0002 0.1131 0.0014 -0.2761 0C 0 1
0.0000][lrsv E 0.4202 0.0342 0.0004 0.1879 0.0026 -0.4511 0C 0 1
0.0000][rxlo E 0.3527 0.0370 0.0003 0.2067 0.0055 -0.6220 0C 0 1
0.0000][qwsv E 0.3595 0.0426 0.0005 0.2993 0.0042 -0.6702 0C 0 1
0.0000][qwlo E 0.1986 0.0282 0.0002 0.4403 0.0191 -1.1256 0C 0 1
0.0000]LU[-0.184]
;W[61gaba]
;B[54quqv]
;W[11eddccbba]
;B[61rsrx]
;W[33tqqnnkkh]
;B[41swvw]
;W[42hfea]
;B[64lrrv]

The issue is with the first move that has no analysis. It wasn't a 61 it
was a 51. That much is easy to fix. How do I enter the move played
though: 7/1 (or 7/2 2/1 or 7/6 6/1)?

                                                Albert


> -----Original Message-----
> From: address@hidden [mailto:bug-gnubg-
> address@hidden On Behalf Of Jim Segrave
> Sent: Wednesday, July 30, 2003 6:13 PM
> To: Albert Silver
> Cc: GNUBackgammon bug reporting
> Subject: Re: [Bug-gnubg] Joining or including .sgf games
> 
> On Wed 30 Jul 2003 (17:45 -0300), Albert Silver wrote:
> > Hi,
> >
> >     I have a problem. I'm in the process of preparing a very long
> > and detailed analysis of a match file. There are many rollouts in
it,
> > but I've encountered a mistake in the 18th game's notation. I know
how
> > to start a game over or continue from a certain point, so I can
easily
> > overwrite the last moves of the game, but doing so will erase the
> > subsequent 11 games as well. How can I re-attach the following 11
games
> > to the main file without losing the information accumulated in the
first
> > 18 games? I'd like to preserve the statistics of the entire match,
> > otherwise I'd just split them in two files.
> 
> Each game in the sgf file for a match begins with a line:
> 
> (;FF[4]GM[6]CA[UTF-8]...[game:xx] ...
> the game ends with a closing parenthesis ')'
> 
> The game numbers go from 0 to whatever, so the one you want is game
> 17.
> 
> What you can do:
> 
> 1) make a copy of the game file, call it something like head.sgf
> 
> 2) make another copy of the game file - say tail.sgf
> 
> 3) with a text editor, edit head.sgf, find the text [game:18] and
>    delete that line and every following line. Use a text editor, not a
>    word processor.
> 
> 4) edit tail.sgf and delete from the beginning up until (but not
>    including) the line containing the text [game:18]
> 
> 5) start gnubg and open head.sgf. Go to the point in game 18 where
>    things need fixing and do what's needed, save it out again when
>    it's right.
> 
> 6) you then combine head.sgf and tail.sgf either by editing head.sgf
>    and inserting tail.sgf at the end or by doing something like:
> 
> C:> cat head.sgf tail.sgf > both.sgf
> 
> If things go wrong, you've still got your original file.
> 
> 
> --
> Jim Segrave           address@hidden
> 
> 
> 
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/bug-gnubg






reply via email to

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