bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] bearoff database


From: Øystein Johansen
Subject: Re: [Bug-gnubg] bearoff database
Date: Tue, 17 Feb 2009 21:52:57 +0100
User-agent: Thunderbird 2.0.0.19 (Windows/20081209)

rambiz khalili wrote:
> hi again,
> well, in terms of input and output, what i want is to put in the
> positions of the two players and get out the winning probability for the
> player on roll. a typical line of the ascii file i'm looking for, runs
> like this:
>  
> 440231 552210 0.847
> 440231 meaning 4 checkers on the 6 point, 4 checkers on the 5 point, gap
> on 4, 2 on the 3 point etc.
> likewise 552210 means: 5 checkers on the 6 and 5 point each, etc. 
> and finally 0.847 shall be the winning probability for the first player
> (440231). 
> regards
> rambiz 

OK, I'll release my tool: http://www.gnubg.org/media/boa.tar.gz

The tar file contains source code and executable for windows. It reads a
file gnubg_os0.bd for each instance. The database file must be in the
same directory as you run the tool.

It works as you suggested. Example: type at the prompt:
boa 1234 4101

(boa = bearoff analyser)

Player on roll has 4 men on acepoint, 1 man on 2-point, no men on
3-point, and 1 man on four point. Opponent (not on roll) has 1 man on
acepoint, 2 men on his twopoint, 3 men on 3-point, 4 men on his four point.

This is just meant as an example of how to turn the database into
something simple. I would guess it's pretty simple to make this program
crash.

Features: Source code provided. Reports gammons
Requirements: glib and gobject, gnubg_os0.bd
Known bugs: no checking whenever board contains less than 16 checkers.

Good luck!
-Øystein

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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