BBO Discussion Forums: Need help with dealer input - BBO Discussion Forums

Jump to content

Page 1 of 1

Need help with dealer input Dealer Input

#1 User is offline   bdautrich 

  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 2019-September-14

Posted 2019-September-14, 16:55

Support Forum

I need help with the dealer input script to the deal source option for the practice area. My partner and I are practicing using Bergen raises so I created the following script.

(((spades(north)>=5) && (spades(south)>=4)) || ((hearts(north)>=5) && (hearts(south)>=4))) && (hcp(north)>12) || (((spades(south)>=5) && (spades(south)>=4)) || ((hearts(south)>=5) && (hearts(south)>=4))) && (hcp(south)>12) && (hcp(east)<10) && (hcp(west)<10)

This script should ensure we have a 9 card major fit with one side having sufficient high card points to open. I added that both east and west have less than 10 high card points to limit their bidding.

When I setup a bidding table by myself the script seems to work. However when my partner joins me the first few hand meet these constraints but then we get hands that do not match these criteria. What am I doing wrong.

Bruce Dautrich
0

#2 User is offline   hrothgar 

  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 15,372
  • Joined: 2003-February-13
  • Gender:Male
  • Location:Natick, MA
  • Interests:Travel
    Cooking
    Brewing
    Hiking

Posted 2019-September-14, 17:52

Give the following a try


hcp(east) < 10 &&
hcp(west) <10

&&

(
(
(
(spades(north) >= 5 && spades(south) >= 4) ||
(hearts(north) >= 5 && hearts(south) >= 4)
)
&& hcp(north) >= 12
)

||

(
(
(spades(south) >= 5 && spades(north) >= 4) ||
(hearts(south) >= 5 && hearts(north) >= 4)
)
&& hcp(south) >= 12
)
)
Alderaan delenda est
0

#3 User is offline   nige1 

  • 5-level belongs to me
  • PipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 9,128
  • Joined: 2004-August-30
  • Gender:Male
  • Location:Glasgow Scotland
  • Interests:Poems Computers

Posted 2019-September-14, 21:34

#
# BERGEN PRACTICE Bruce Dautrich 15 Sep 2019
# Uses Dealer by Hans van Staveren 
# http://www.bridgebase.com/tools/dealer/dealer.php
#

NBergen = hcp (north) > 12
and ((spades (north) > 4 and spades (south) > 3)
or (hearts (north) > 4 and hearts (south) > 3))

SBergen = hcp (south) > 12
and ((spades (south) > 4 and spades (north) > 3)
or (hearts (south) > 4 and hearts (north) > 3))

EWsilent = hcp (west) < 10 and hcp (east) < 10

produce 5
condition EWsilent and (NBergen or SBergen)
action printoneline


produced
n AQJ8.QT432.75.J5 e 972.85.KQ6.A8642 s 6.AKJ97.AJ98.KQ9 w KT543.6.T432.T73 
n AJ9632.AKT92..96 e T4.Q7.T9765.A874 s KQ875.6.AQ432.K3 w .J8543.KJ8.QJT52 
n A2.AKT98.T863.Q8 e KQ95.7642.J2.K97 s 84.QJ53.K75.AT64 w JT763..AQ94.J532 
n AJ53.J983.K763.8 e 864.T62.QT.AJ653 s KQT97.AQ54.AJ8.7 w 2.K7.9542.KQT942 
n K82.AKJ72.A83.KT e A954.5.T974.9876 s QT6.QT96.2.AJ432 w J73.843.KQJ65.Q5 
Generated 572 hands
Produced 5 hands
Initial random seed 1568518090
Time needed    0.001 sec

0

#4 User is offline   bdautrich 

  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 2019-September-14

Posted 2019-September-15, 10:51

Thanks!
0

#5 User is offline   bdautrich 

  • Pip
  • Group: Members
  • Posts: 4
  • Joined: 2019-September-14

Posted 2019-September-15, 10:52

Thanks! I was wandering if I needed to tell it to produce so many hands.
0

Page 1 of 1


Fast Reply

  

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