BBO Discussion Forums: Dealer Language - BBO Discussion Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Dealer Language Part 2

#1 User is offline   kfay 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,208
  • Joined: 2007-July-01
  • Gender:Male
  • Location:Michigan
  • Interests:Science, Sports

Posted 2009-March-12, 10:29

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?
Kevin Fay
0

#2 User is offline   Cascade 

  • PipPipPipPipPipPipPipPip
  • Group: Yellows
  • Posts: 6,772
  • Joined: 2003-July-22
  • Gender:Male
  • Location:New Zealand
  • Interests:Juggling, Unicycling

Posted 2009-March-12, 14:00

I don't think dealer does this.

The dealer(north) command simply sets the dealer to north. I can't see anything in the documentation where you can alternate the dealer.
Wayne Burrows

I believe that the USA currently hold only the World Championship For People Who Still Bid Like Your Auntie Gladys - dburn
dunno how to play 4 card majors - JLOGIC
True but I know Standard American and what better reason could I have for playing Precision? - Hideous Hog
Bidding is an estimation of probabilities SJ Simon

#3 User is offline   TimG 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,972
  • Joined: 2004-July-25
  • Gender:Male
  • Location:Maine, USA

Posted 2009-March-12, 21:02

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.
0

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users