EdwardPiwowar / BBA

2 stars 0 forks source link

Batch operation #674

Open ThorvaldAagaard opened 3 weeks ago

ThorvaldAagaard commented 3 weeks ago

In the folder with BBA I created a new folder called batch, just to make it simpler to compare results

Now I would like BBA to automatically bid a set of hands, so I enter this command in a command prompt

..\BBA-preview.exe --ARCHIVE_FILE CBE_213_BBA.pbn --AUTOBID CBE_213.pbn --BBSA_FOLDER . --CURRENT_ARCHIVE .

and the application start fine, and also start bidding

image

but it is bidding the random hands

I noted that the output is saved in CBE_213_BBA.pbn.ben, so that setting is read, and the Archive setting from the application is used. You could check that extension is matching, but not important.

Rereading the documentation in the description I realized that I had to add --HAND together with --AUTOBID, so issuing this command

..\BBA-preview.exe --ARCHIVE_FILE CBE_213_BBA--AUTOBID --HAND CBE_213.pbn --BBSA_FOLDER . --CURRENT_ARCHIVE .

Now the application bids the inputfile from --HAND, and I noted that the ARCHIVE_FILE is expected to be without extension

image

It would be nice if single and double dummy OFF in this situation, or can be handled from the command line

But the bidding was with the default .bbsa and I would like it to be my custom CC, and again back to the documentation and finding that if no CC's on BBSA_FOLDER it will just take the default.

Now I opened a CC from the where all the CC's are, but I was not able to save CC

image

But just a minor error as I should change the --BBSA_FOLDER to the folder with CC's or copy the CC's to current folder.

So after copying the CC's to the current folder, this command worked fine

..\BBA-preview.exe --ARCHIVE_FILE CBE_213_BBA --AUTOBID --HAND CBE_213.pbn --BBSA_FOLDER . --CURRENT_ARCHIVE .

So a better error handling for clumsy users, and disabling the analysis and all is working fine, and should be added to the website.

image

EdwardPiwowar commented 3 weeks ago

so you would like: --CC1 path --CC2 path --SD ON/OFF --DD ON/OFF

ThorvaldAagaard commented 3 weeks ago

Yes, that would be fine.