Creating data for bridge with special distributions - export to pbn format
Go
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
cmdline
distribution
examples/cmdline
webserver
.gitignore
LICENSE
README.md

README.md

Go Report Card codebeat badge

Bridge

Creating data for bridge with special distributions - export to pbn format

Samples

See pbn_generation_samples.demo in examples/cmdline

Command line bridgefiller

bridgefiller -t (Constraints) -f (File name)

Constraints : R, H, C, P "(R)andomise, (H)and, (C)olor, (P)oint"

json format

	filename:pbn filename

	count:Number of distribution in the pbn file 

	constraint:Nothing for free random - Hand: See Sample "-" hand equal randommize - 
	Color Color distribution N, E, S, W and Club, Diamond, Heart, Spade - Point N (Min-Max),E ...

	comment:use \n for newline

	dealer:N, E, S, W

	Vulnerable:ALL, NS, EW, NONE
	
	depth:if 0 default value, real value=10000 Number of search for distribution (only for P)

Examples : bridgefiller -t R -f test_a.json

Sample json for R:

{ "filename":"test_4js.pbn", "count":10, "comment":"Random\n...", "dealer":"N", "Vulnerable":"ALL", "depth":0 }

Sample json for H:

{ "filename":"test_3js.pbn", "count":10, "constraint":"[Dealer "W"]\n[Vulnerable "ALL"]\n[Deal "W:- - K52.AKQ92.A8.AKT -"]", "comment":"With constraint hands\n...", "dealer":"N", "Vulnerable":"ALL", "depth":0 }

Sample json for C:

{ "filename":"test_2js.pbn", "count":10, "constraint":"3-1-7-2,3-5-2-3,3-2-1-7,4-5-3-1", "comment":"With constraint color\n...", "dealer":"N", "Vulnerable":"ALL", "depth":0 }

Sample json for P:

{ "filename":"test_1js.pbn", "count":10, "constraint":"0-10,0-10,0-10,0-37", "comment":"With constraint point\n...", "dealer":"N", "Vulnerable":"ALL", "depth":0 }