xbootnek Posted March 5, 2010 Report Share Posted March 5, 2010 If I start a Bidding table, and selected Dealer Source/Advanced, I canpaste code into the Dealer Source text box. If I check the box "Usethis code...", the Redeal will then deal hands to that specification.This code: shape(north, any 4333 + any 4423) andhcp(north)>=15 and hcp(north) <= 17 and(hcp(south) >= 8 and hcp(south) <= 18) will generate a series of hands where North has a 1NT opener, andSouth has varied hands that have between 11 and 18 HCP. Googling on the web, I see that this is a subset of the input for Hansvan Staveren's Dealer program which is described athttp://www.andrew.cmu.edu/user/gc00/biddin...ler/dealer.html My objective here is to generate a series of hands for practice onBBO. I'm getting there slowly by trial and error. The code above generates a 1NT opening bid. I would like to developsimilar code for all the 2 over 1 openings and responses so I canteach a new partner who has never played bridge and practice with them I imagine this as a long text document containing all the opening bidsand responses, from which one could cut a particular lesson and pasteit into the Dealer Source box. My questions are whether BBO or anyone else has developed code for theDealer Source box to do that; and whether BBO has any documentationfor using the Dealer Source box to help in that objective. Or do I have to do this by more trial and error? Quote Link to comment Share on other sites More sharing options...
uday Posted March 5, 2010 Report Share Posted March 5, 2010 Experiment here http://www.bridgebase.com/tools/dealer/dealer.php This (and the thing you use inside BBO) is backed by Dealer. The page above has links to the syntax Quote Link to comment Share on other sites More sharing options...
xbootnek Posted March 6, 2010 Author Report Share Posted March 6, 2010 Thanks Uday, However, BBO appears to only use a subset of the Dealer functionality. The pre-processor commands generate a BBO error. Try pasting: shape{north, 5+xx5+} I guess the message I am getting from you and from BBO Tech Support is that there is no concise guide to the Dealer syntax for Dealer Source on BBO. Given that I will have to build the scripts I want by testing by trial and error from the best available Dealer doc which so far appears to be: http://svn.df7cb.de/debian/dealer/branches...nual/dealer.txt Quote Link to comment Share on other sites More sharing options...
uday Posted March 6, 2010 Report Share Posted March 6, 2010 N, the msg is: 1. There are two contexts in which we use Dealer. Inside the client, and on the web page above. 2. The docs for the scripting lang can be found at the SYNTAX link that the web page (link above) cites http://www.xs4all.nl/~henku/html/dealer/input_file.html I don't know if shape{north, 5+xx5+} is valid syntax or not, for this version of dealer.My guess is that Hans' version ( the one we're using) isnt the same as the one you're referencing. produce 5condition spades(north) >= 5 && clubs(north) >=5 action printoneline seems to work just fine. Anyway, check the docs. Quote Link to comment Share on other sites More sharing options...
xbootnek Posted March 7, 2010 Author Report Share Posted March 7, 2010 Thanks Uday. The code you gave was: produce 5condition spades(north) >= 5 && clubs(north) >=5 action printoneline In the BBO environment only this line is needed: spades(north) >= 5 && clubs(north) >=5 The curly bracket stuff came from a Dealer pre-processor I found. My mild beef continues to be that I can't tell where BBO differs from Hans' spec. He allows variables e.g. BALANCEDHAND = shape(north, any 4333) and conditional logic in the ternary operator to use those variables. BBO apparently does not allow variables nor logic. Quote Link to comment Share on other sites More sharing options...
bb79 Posted March 7, 2010 Report Share Posted March 7, 2010 BBO apparently does not allow variables nor logic. Variables work for me. The dealer input: balhand=shape(south, any 4333) balhand and redeal Logic example: balhand=shape(south, any 4333) hcpsouth=hcp(south)>22 balhand and hcpsouth and redeal Quote Link to comment Share on other sites More sharing options...
xbootnek Posted March 8, 2010 Author Report Share Posted March 8, 2010 Thanks Walter, That works for me too. The ternary operator too. Quote Link to comment Share on other sites More sharing options...
bb79 Posted March 9, 2010 Report Share Posted March 9, 2010 No problem. I was wondering who you referred as Walter, and then I realized... "I am the Walrus" :rolleyes: Burak Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.