bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] more than 2 double sided bearoff databases


From: Ian Shaw
Subject: Re: [Bug-gnubg] more than 2 double sided bearoff databases
Date: Mon, 17 Sep 2012 12:56:36 +0000

Hi Michael, 

Gnubg can have two databases of each type. One is loaded into memory; the other 
is held on disk and only accessed when required. 

This allows gnubg to have a small database in memory, say for the inner-board 
positions (which occur most frequently), and a more extensive one for positions 
with chequers on further points. 

Michael's post ( 
http://lists.gnu.org/archive/html/bug-gnubg/2012-02/msg00060.html ) identified:

gnubg_os0.bd            The one sided bearoff database (os=one sided)
gnubg_ts0.bd            The two sided bearoff database (ts=two sided)

You can also have :

gnubg_os.bd            The one sided bearoff databas on disk
gnubg_ts.bd            The two sided bearoff database on disk

These files should be stored in the same directory as gnubg. They would 
typically be larger than the *0.bd files. The positions in the *0.bd files 
would  a subset of the larger ones.

William, 

Why would you need more than the arrangement described above? I'm struggling to 
think of a scenario where that would be useful, unless you have a cunning plan 
to overcome the size restrictions.

If you do want to add extra databases, you would need to modify the code to 
tell gnubg what they were, when and how to use them.

Also, note the comments I made back in August. I think gnubg will struggle to 
address databases larger than those currently available, even if you manage to 
create them. So there will probably be some work, there.

Hope this helps,
-- Ian

-----Original Message-----
From: address@hidden [mailto:address@hidden On Behalf Of Michael Petch
Sent: 12 September 2012 02:48
To: address@hidden
Subject: Re: [Bug-gnubg] more than 2 double sided bearoff databases

On 2012-09-11 12:36, William Wright wrote:
> I am wondering if gnubg can read more than two double sided bearoff 
> databases into its evaluation engine. If it is able to do so what must 
> I call that database or do I have to alter the code and add a name 
> before it will recognize another one?
> 

Regarding bearoff databases, GNUBG supports only 1 two sided bearoff database 
and 1 one-sided bearoff database at any given time. As for the file naming 
convention and other info that may help you, you may wish to see this post I 
made previously:

http://lists.gnu.org/archive/html/bug-gnubg/2012-02/msg00060.html


--
Michael Petch
CApp::Sysware Consulting Ltd.
OpenPGP FingerPrint=D81C 6A0D 987E 7DA5 3219 6715 466A 2ACE 5CAE 3304



_______________________________________________
Bug-gnubg mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/bug-gnubg



reply via email to

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