Jump to content

Dealer Language


kfay

Recommended Posts

OK so let's say I'm trying to practice my system over the opps' 1NT. I want E or W to be dealer at the bidding table, which is easy to accomplish by checking the box for dealers. But now I want dealer to have a 1NT opener.

 

It seems like I want to use the selection operator '?' that DEALER recognizes. Here is an example from the webpage on some sample code using this operator:

 

 

 

minornorth = clubs(north) > diamonds(north) ? hcp(north,clubs) : hcp(north,diamonds)

 

corresponds to C language

 

if (clubs(north) > diamonds(north) )

minornorth = hcp(north, clubs);

else

minornorth = hcp(north, diamonds);

 

 

 

 

I want the dealer to have a 1N opener so it seems like I might want to use the language:

 

dealer(west)?(hcp(west)>14&&hcp(west)<18&&shape(west, any 4333 + any 4432 + any 5332 + 2245 + 2254 + any 6322 - 6xxx - x6xx)):(hcp(east)>14&&hcp(east)<18&&shape(east, any 4333 + any 4432 + any 5332 + 2245 + 2254 + any 6322 - 6xxx - x6xx))

 

with both E and W boxes checked in dealer template to make either one dealer. I feel like the problem with this code resides in "dealer(west)?" but I can't say I'm certain.

 

Any suggestions?

Link to comment
Share on other sites

A workaround might be to give either east or west a 1NT opener.

 

Half the time the dealer and the 1NT opener will be the same. A portion of the rest of the time, it will go P-P-1N. The others you can skip.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...