bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Parsing the Kit Woolsey - Jeremy Bagai match


From: Jim Segrave
Subject: Re: [Bug-gnubg] Parsing the Kit Woolsey - Jeremy Bagai match
Date: Mon, 29 Sep 2003 14:23:36 +0200
User-agent: Mutt/1.4i

On Mon 29 Sep 2003 (11:38 +0000), Joern Thyssen wrote:
> On Sun, Sep 28, 2003 at 07:47:28PM +0200, ?ystein Johansen wrote
> > Hi,
> > 
> > I'm trying to make a parsing algoritme to parse the Kit Woolsey Jeremy
> > Bagai match founf here:
> > http://www.csc.no/~paalf/BG/matches/KitWoolsey-JeremyB.txt.gz
> > I'm having problems getting the comments into the commentary field. Does
> > anyone have any ideas?
> 
> I've not sure what you mean.
> 
> My algorithm would be:
> 
> (a) Search for "Move 1"
> (b) Parse string to deduce action
> (c) skip to " 13 14 15 16 17 18      19 20 21 22 23 24" (or reverse)
> (d) read move
> (e) read comments until "Move 2"
> (f) goto (b)

I can probably put together a script which will make .sgf files out of
this with comments.

Some fun issues to contend with:

1) combined rolls - roll 65, reported as 24/13, has to be converted to
   24/18 18/13 for entry in the .sgf file. I have an algorithm I
   worked out last night which examines the board and sets up an array
   to indicate what legal intermediate moves could be used to resolve
   combinations like the above. But I need to refine how it handles
   something like:

   roll 51 move 4/0

2) many games end with resignation by the player not on roll. I'll
   probably just end the game on the last full move


-- 
Jim Segrave           address@hidden




reply via email to

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