Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bridge Calculator - free, double dummy solver

611 views
Skip to first unread message

qwak

unread,
Jul 1, 2011, 8:09:18 PM7/1/11
to
Hello,

I want to present Bridge Calculator - double dummy solver:
http://bcalc.w8.pl/

My program have some attractive futures:
is very fast, free, portable (windows and linux), and can import deals
from Internet places (URLs) or files using popular formats like PBN or
BBO .lin...

I hope you will find the program useful.
I also would be very grateful to you for any advice and opinions,
Piotr Beling

--
Piotr Beling - http://qwak.w8.pl http://warcaby.w8.pl http://bcalc.w8.pl
http://kiedygdzie.co

pgmer6809

unread,
Jul 2, 2011, 1:02:01 AM7/2/11
to

I tried downloading this file for lInux. It is a .tar.gz file. There
are subdirectories in it, and files that do not end in a filetype that
I am familiar with (.mo).
There is no manifiest, or README file, or install instructions, or
such like. There are a couple of small scripts with the
extension .lua. Trying to open most of the files with a text editor
does not succeed. The other option my system gives me is to execute
the files using Crossover/Wine. Looks like my system thinks they are
Windows executables. I am not sure what to make of all this.
pgmer6809

Rob Morris

unread,
Jul 2, 2011, 4:13:48 AM7/2/11
to
On 02/07/2011 06:02, pgmer6809 wrote:
> I tried downloading this file for lInux. It is a .tar.gz file. There
> are subdirectories in it, and files that do not end in a filetype that
> I am familiar with (.mo).
> There is no manifiest, or README file, or install instructions, or
> such like. There are a couple of small scripts with the
> extension .lua. Trying to open most of the files with a text editor
> does not succeed. The other option my system gives me is to execute
> the files using Crossover/Wine. Looks like my system thinks they are
> Windows executables. I am not sure what to make of all this.
> pgmer6809

The tar.gz files contain statically linked executables - the files
bcalcgui and bcalconsole. If your system can't run them, perhaps you
have 32-bit instead of 64-bit or vice versa?

(I can't speak for the software in any other way, I just had a look at
the files).

qwak

unread,
Jul 2, 2011, 5:43:14 AM7/2/11
to
W dniu 02.07.2011 07:02, pgmer6809 pisze:

> I tried downloading this file for lInux. It is a .tar.gz file. There
> are subdirectories in it, and files that do not end in a filetype that
> I am familiar with (.mo).
> There is no manifiest, or README file, or install instructions, or
> such like. There are a couple of small scripts with the
> extension .lua.

bcalcgui and bcalconsole are executables (you should try this,
especially bcalcgui in graphic environment)
.lua scripts are used by bcalcgui itself
.mo files are for translations
bcalcgui required libs: lua and curl
(try install: liblua or lua and lubcurl or curl packages)
You also can try download previous version (11.06.0) which is very
similar and not require liblua.

If program still can't run please try to run it from console and send
error message.

I will add README to archive in next release - thank You for good advice.

dak...@aol.com

unread,
Jul 2, 2011, 10:19:16 AM7/2/11
to
I really want a stats package added. ie.
DD solve a thousand hands given an opening hand;
accounting of making, -1, -2 results.
How close is your program to that?
I intend a survey of opening minimums.

qwak

unread,
Jul 2, 2011, 3:44:22 PM7/2/11
to
W dniu 02.07.2011 16:19, dak...@aol.com pisze:

My solver is very fast (probably the fastest one), so it is good to
solves many deals in reasonable time.

Currently, I have no comfortable and flexible interface to do statistic
analyses. I will plan to write one, but this is not very easy task, so
probably it will haven't done quickly.

At this moment the best you can do is using console program version in
shell scripts, see:
http://bcalc.w8.pl/index.php?lang=en&topic=help#Non-interactive%20work%20%28using%20in%20scripts,%20etc.%29

Grant

unread,
Jul 3, 2011, 2:52:36 PM7/3/11
to
On Jul 1, 5:09 pm, qwak <q...@w8.pl> wrote:
> Hello,
>
> I want to present Bridge Calculator - double dummy solver:http://bcalc.w8.pl/
>
> My program have some attractive futures:
> is very fast, free, portable (windows and linux), and can import deals
> from Internet places (URLs) or files using popular formats like PBN or
> BBO .lin...
>
> I hope you will find the program useful.
> I also would be very grateful to you for any advice and opinions,
> Piotr Beling
>
> --
> Piotr Beling -http://qwak.w8.plhttp://warcaby.w8.plhttp://bcalc.w8.plhttp://kiedygdzie.co

Piotr -- Thank you for your efforts and for sharing this with
everyone, Piotr. Do you plan to publish an API for your solver?

qwak

unread,
Jul 3, 2011, 3:37:23 PM7/3/11
to
W dniu 03.07.2011 20:52, Grant pisze:

> Piotr -- Thank you for your efforts and for sharing this with
> everyone, Piotr. Do you plan to publish an API for your solver?

Yes. For sure I will make free API to solver for personal use and use in
free applications. I don't decide what with commercial applications.
I hope to find some time to do API soon. You will find it on
http://bcalc.w8.pl/ when it will be available.

Peter Smulders

unread,
Jul 5, 2011, 12:49:33 AM7/5/11
to
qwak schreef op 02 jul 2011:

> W dniu 02.07.2011 16:19, dak...@aol.com pisze:
>> I really want a stats package added. ie.
>> DD solve a thousand hands given an opening hand;
>> accounting of making, -1, -2 results.
>> How close is your program to that?
>> I intend a survey of opening minimums.
>
> My solver is very fast (probably the fastest one), so it is good
> to solves many deals in reasonable time.
>
> Currently, I have no comfortable and flexible interface to do
> statistic analyses. I will plan to write one, but this is not
> very easy task, so probably it will haven't done quickly.
>
> At this moment the best you can do is using console program
> version in shell scripts, see:
> http://bcalc.w8.pl/index.php?lang=en&topic=help#Non-interactive%2
> 0work%20%28using%20in%20scripts,%20etc.%29
>

I presume you are aware of Bo Haglunds double dummy solver. How
does it compare?

qwak

unread,
Jul 5, 2011, 7:10:44 AM7/5/11
to
W dniu 05.07.2011 06:49, Peter Smulders pisze:

> qwak schreef op 02 jul 2011:

> I presume you are aware of Bo Haglunds double dummy solver. How
> does it compare?

Yes, I know Bo Haglund's solver. I very often make speed comparisons to
this solver.
I have done some benchmark recently (using newest versions) and bcalc is
almost 2 times faster (testing on deals from database published by Bo
Haglund).

bo.ha...@bahnhof.se

unread,
Jul 5, 2011, 3:14:09 PM7/5/11
to
Thanks for making this interesting product available for free!

Would it be easy to write a script that accesses a text file providing
a
list of deals in PBN format and then for each deal calculate all 20
trump / lead hand DD results?

I am thinking of a file where each line contains PBN deal information,
e.g. T5.K4.652.A98542 K6.QJT976.QT7.Q6 432.A.AKJ93.JT73
AQJ987.8532.84.K
with West having the first 13 cards (and then N, E and S).

As output, the DD results as well as timing information.

Do you plan to make an algorithm description publicly available?


Bo Haglund

On 2 Juli, 02:09, qwak <q...@w8.pl> wrote:
> Hello,
>
> I want to present Bridge Calculator - double dummy solver:http://bcalc.w8.pl/
>
> My program have some attractive futures:
> is very fast, free, portable (windows and linux), and can import deals
> from Internet places (URLs) or files using popular formats like PBN or
> BBO .lin...
>
> I hope you will find the program useful.
> I also would be very grateful to you for any advice and opinions,
> Piotr Beling
>
> --

qwak

unread,
Jul 5, 2011, 4:15:35 PM7/5/11
to
W dniu 05.07.2011 21:14, bo.ha...@bahnhof.se pisze:

> Thanks for making this interesting product available for free!
Thanks.

> Would it be easy to write a script that accesses a text file providing
> a
> list of deals in PBN format and then for each deal calculate all 20
> trump / lead hand DD results?

Not very easy, but possible.
But, it will be much easier in near future. I have a plan to release
library with C API. I'm just working on this and it should be ready
after few days.

> Do you plan to make an algorithm description publicly available?

Yes, all details will be in my pHd thesis, but this will be not very
quickly (2-3 years).
The algorithm strongly base on Ginsberg's Partition Search, but with
many enchantments.

Bye,
Piotr

HoneyMonster

unread,
Jul 5, 2011, 5:07:09 PM7/5/11
to
On Tue, 05 Jul 2011 22:15:35 +0200, qwak wrote:

> The algorithm strongly base on Ginsberg's Partition Search, but with
> many enchantments.

Wow. Hermione helped? I think you meant enhancements.
Only teasing; I realise that your first language is not English ;-)

Piotr Beling

unread,
Jul 7, 2011, 6:27:01 PM7/7/11
to
Yes, I'm not native English speaker. Sorry for my mistakes:)

PS. API to my solver is available to download (for maximum portable, I
wrote this API in C - solver itself is written in C++).
It is very fresh, and almost not tested yet, so any suggestions and
informations about a bugs are welcome.

Steve Willner

unread,
Jul 21, 2011, 7:49:06 PM7/21/11
to
On 7/2/2011 3:44 PM, qwak wrote:
> At this moment the best you can do is using console program version in
> shell scripts, see:
> http://bcalc.w8.pl/index.php?lang=en&topic=help#Non-interactive%20work%20%28using%20in%20scripts,%20etc.%29

So to solve one deal with four declarers and five strains takes 20
lines? Not a big problem. Actually you have 'a' for trumps, so it
takes only four lines.

Is it possible to solve multiple deals in a single pbn file? I'm
thinking of something like
bcalconsole -t a -l N -q -d PBN -c myfile.pbn
(and repeat three more times for the other declarers). Or is "-l a" a
legal value?

Obviously I haven't tried this yet, but I don't want to spend a lot of
time on it until I know it will work. Regardless, I'm very grateful to
you for making the program freely available.

--
Help keep our newsgroup healthy; please don't feed the trolls.
Steve Willner Phone 617-495-7123 swil...@nhcc.net
Cambridge, MA 02138 USA

qwak

unread,
Jul 24, 2011, 3:37:44 PM7/24/11
to
W dniu 22.07.2011 01:49, Steve Willner pisze:

> Is it possible to solve multiple deals in a single pbn file?

No. Console version always only work with one deal.
But recently I have made C API to bridge double dummy solver available
to download from http://bcalc.w8.pl/ page.
My simple PBN parser (in C++) is also available for free to download
from my homepage: http://qwak.w8.pl/project:pbnparser
So, reasonable easy you can develop own program.

I have a plan to add to GUI version of bcalc option to write full double
dummy results (for all trump/declarer) to PBN file when export (PBN can
store this kind of information).

endu...@gmail.com

unread,
Jul 19, 2012, 9:16:50 PM7/19/12
to
Any chance someone would want to team up and work on a PHP script that would parse a pbn and combine it with ACBLscore results text file for publishing to the web. Something similar to bridge composer but again, web based. I know PHP but very little about bridge (specifically running double dummy calculations). I have a friend who wants there website to show such results. Thanks.

Adam Beneschan

unread,
Jul 20, 2012, 5:34:12 PM7/20/12
to
On Tuesday, July 5, 2011 2:07:09 PM UTC-7, HoneyMonster wrote:
> On Tue, 05 Jul 2011 22:15:35 +0200, qwak wrote:
>
> > The algorithm strongly base on Ginsberg's Partition Search, but with
> > many enchantments.
>
> Wow. Hermione helped? I think you meant enhancements.

Maybe not. I've seen a lot of code (other people's code, of course) where I stare and stare at it to figure out how it works, and finally have to conclude that it only works because of some sort of magic spell. :) :)

-- Adam

Mark Brader

unread,
Jul 20, 2012, 6:19:34 PM7/20/12
to
Adam Beneschan:
> I've seen a lot of code (other people's code, of course)
> where I stare and stare at it to figure out how it works, and finally
> have to conclude that it only works because of some sort of magic spell.
> :) :)

http://catb.org/jargon/html/magic-story.html
--
Mark Brader Hackers are far more likely ... to either
Toronto (a) be aggressively apolitical or (b) entertain
m...@vex.net peculiar or idiosyncratic political ideas and
actually try to live by them day-to-day.
-- Eric S. Raymond
0 new messages