bug-gnubg
[Top][All Lists]
Advanced

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

RE: [Bug-gnubg] Batch anlyse - can it also analyse a group of single gam


From: Ian Shaw
Subject: RE: [Bug-gnubg] Batch anlyse - can it also analyse a group of single games as a combined session?
Date: Thu, 18 Jun 2009 08:56:47 +0100


I realise it's not what you were asking, but here are few hints for combining a 
session by hand, which I used when doing this for GammonEmpire .gam files.

Individual .gam files look like this:

   0 point match

 ianshaw   : 0                       sauol777 : 0
  1) 41: 13/9 24/23                  23: 13/10 10/8
  2) 31: 8/5 6/5                     65: 24/18 18/13
  3) 65: 24/18 23/18                 52: 8/3 24/22
  4) 16: 9/3* 6/5                    56:
  5) 64: 13/7 7/3                    31: 25/24 6/3
  6) 22: 8/6 8/6 6/4 6/4             52: 13/8 6/4
  7) 61: 13/7 7/6                    45: 13/8 8/4
  8) 25: 13/8 13/11                  52: 8/3 8/6
  9) 54: 6/1* 5/1                    11:
 10)  Doubles => 2                    Drops
      Wins 1 point and the match

A .mat file looks like this:

   0 point match

 ianshaw   : 0                       sauol777 : 0
  1) 41: 13/9 24/23                  23: 13/10 10/8
  2) 31: 8/5 6/5                     65: 24/18 18/13
  3) 65: 24/18 23/18                 52: 8/3 24/22
  4) 16: 9/3* 6/5                    56:
  5) 64: 13/7 7/3                    31: 25/24 6/3
  6) 22: 8/6 8/6 6/4 6/4             52: 13/8 6/4
  7) 61: 13/7 7/6                    45: 13/8 8/4
  8) 25: 13/8 13/11                  52: 8/3 8/6
  9) 54: 6/1* 5/1                    11:
 10)  Doubles => 2                    Drops
      Wins 1 point

 Game 2
 ianshaw : 1                     sauol777 : 0
  1) 53: 8/3 6/3                     32: 13/10 13/11
  2) 12: 13/11 24/23                 36: 11/5 8/5
  3) 45: 23/18 18/14                 15: 6/1* 6/5
...

Step 1.
1) Merge your .gam files into a .mat file. You can do this by cut & pasting in 
text editor. Or you can use the command line copy command:

Copy *sauol177.gat sauol177.mat

2) Open the new match file.
Search and replace " and the match" with an empty string.

3) Add the Game number, which I think must start with a space. Change the score 
if you can be bothered.

4) Not sure about this (it's a while since I did it)
I think that you must remove white space from the end of the file. That is, the 
last line should end on "Wins 2 points" (for example)

-- Ian


> -----Original Message-----
> From: address@hidden 
> [mailto:address@hidden 
> On Behalf Of Christian Anthon
> Sent: 16 June 2009 21:08
> To: Adi Kadmon; bug-gnubg
> Subject: Re: [Bug-gnubg] Batch anlyse - can it also analyse a 
> group of single games as a combined session?
> 
> On Tue, Jun 16, 2009 at 9:45 PM, Adi 
> Kadmon<address@hidden> wrote:
> > Thanks Christian,
> > I do mean a batch of separate games (all of them 
> single-money-games, 
> > all of them with the same opponent) in separate files. I 
> thought GNU 
> > should have the option not just to analyse all these selected games 
> > (files) one by one, but also as an aggregate whole, like a 
> "money-game 
> > session". (If they are all single-money-games, why should 
> their exact 
> > sequence make any
> > difference?)
> 
> I assume that you want to combine the statistics of the 
> games. That could probably be done in the relational 
> database, but you have to now a bit of sql to do it.
> 
> >     Anyway, if a combined analysis is not possible with the 
> separate 
> > games on separate files, what is the easiest way to combine 
> the games 
> > into a single readable file or something of that sort, in order to 
> > allow GNU to do the desired task?
> 
> Depends of the input file format. Most of formats are text 
> based and can be merged by hand. Try creating a two game 
> session and save the entire session as well as the individual 
> games and compare the files to get an idea on how to merge them.
> 
> It is a little too special a need for me to want to add to 
> gnubg at present.
> 
> Christian.
> 
> 
> _______________________________________________
> Bug-gnubg mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-gnubg
> 




reply via email to

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