BBO Discussion Forums: Dealer Scripts, summarised - BBO Discussion Forums

Jump to content

  • 3 Pages +
  • 1
  • 2
  • 3

Dealer Scripts, summarised

#41 User is offline   microcap 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 296
  • Joined: 2004-March-08

Posted 2023-October-01, 17:28

Rex of course has changed our bidding system right after I finally learned the old one.

Can someone help me with the dealer syntax for the following three way opening one club bid:

1) Can be any strong 2 opener that normal people [which excludes Rex] would open 2 clubs

2) Can be 4-4-4-1 distribution with at least 11 HCP with the singleton NOT in clubs

3) 17-20 balanced HCP with no five card major and at least 2 clubs

thanks so much in advance, I could never figure this out in years of trying
0

#42 User is offline   paulg 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 5,088
  • Joined: 2003-April-26
  • Gender:Male
  • Location:Scottish Borders

Posted 2023-October-02, 03:49

This will do pretty much what you want although the definition of the 'strong' hands could be improved. Hopefully the layout highlights what can easily be changed within each definition.

oneclub = (hcp(north)>21 or losers(north)<4)
          or (hcp(north)>10 and shape(north, 1444+4144+4414))
          or (hcp(north)>16 and hcp(north)<21 and shape(north, any 4333 + any 4432
                                                		+ 3352 +3253 + 2353 + 3325 + 3235 + 2335))
														
oneclub


Edited to reflect pescetom's comment

This post has been edited by paulg: 2023-October-02, 09:05

The Beer Card

I don't work for BBO and any advice is based on my BBO experience over the decades
0

#43 User is online   pescetom 

  • PipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 8,058
  • Joined: 2014-February-18
  • Gender:Male
  • Location:Italy

Posted 2023-October-02, 06:24

That should be >= 17 (and perhaps >= 22 too).
0

#44 User is offline   paulg 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 5,088
  • Joined: 2003-April-26
  • Gender:Male
  • Location:Scottish Borders

Posted 2023-October-02, 09:07

 pescetom, on 2023-October-02, 06:24, said:

That should be >= 17 (and perhaps >= 22 too).


Thanks, updated appropriately.
The Beer Card

I don't work for BBO and any advice is based on my BBO experience over the decades
0

#45 User is offline   microcap 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 296
  • Joined: 2004-March-08

Posted 2023-October-02, 09:13

thanks so much, hope never to play against you guys as you are so much smarter than i am
0

#46 User is offline   CraigRT 

  • PipPip
  • Group: Members
  • Posts: 13
  • Joined: 2022-February-06
  • Gender:Male
  • Location:Australia

Posted 2024-August-22, 16:50

I want to use a teaching table where 4 of us can practice our bidding and play against each other. I would like to set up so that we can practice scenarios such as opening a strong 1NT. I would still like the dealing to rotate around as it usually does. I would like a script that has the dealer always have a 1NT opening, or at least one of the hands on the table have that. I have a script that does it but it seems a bit clunky, is there a better way to do it?

NT_N = shape(north, any 4333 + any 4432 + any 5332) and hcp(north)>=15 and hcp(north)<=17
stayman_N = shape(south, 4xxx + x4xx) and hcp(south)>7
jakoby_major_N = shape(south, 5xxx + x5xx + 6xxx + x6xx)
jakoby_minor_N = shape(south, xx6x + xx7x + xx8x + xxx6 + xxx7 + xxx8) and hcp(south) < 10

NT_E = shape(east, any 4333 + any 4432 + any 5332) and hcp(east)>=15 and hcp(east)<=17
stayman_E = shape(west, 4xxx + x4xx) and hcp(west)>7
jakoby_major_E = shape(west, 5xxx + x5xx + 6xxx + x6xx)
jakoby_minor_E = shape(west, xx6x + xx7x + xx8x + xxx6 + xxx7 + xxx8) and hcp(west) < 10

NT_S = shape(south, any 4333 + any 4432 + any 5332) and hcp(south)>=15 and hcp(south)<=17
stayman_S = shape(north, 4xxx + x4xx) and hcp(north)>7
jakoby_major_S = shape(north, 5xxx + x5xx + 6xxx + x6xx)
jakoby_minor_S = shape(north, xx6x + xx7x + xx8x + xxx6 + xxx7 + xxx8) and hcp(north) < 10

NT_W = shape(west, any 4333 + any 4432 + any 5332) and hcp(west)>=15 and hcp(west)<=17
stayman_W = shape(east, 4xxx + x4xx) and hcp(east)>7
jakoby_major_W = shape(east, 5xxx + x5xx + 6xxx + x6xx)
jakoby_minor_W = shape(east, xx6x + xx7x + xx8x + xxx6 + xxx7 + xxx8) and hcp(east) < 10

condition (NT_N and (stayman_N or jakoby_major_N or jakoby_minor_N))
       or (NT_E and (stayman_E or jakoby_major_E or jakoby_minor_E))
       or (NT_S and (stayman_S or jakoby_major_S or jakoby_minor_S))
       or (NT_W and (stayman_W or jakoby_major_W or jakoby_minor_W))

0

#47 User is online   smerriman 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,101
  • Joined: 2014-March-15
  • Gender:Male

Posted 2024-August-22, 16:57

If you're looking for a simple solution, David Bailey has written an extension that does this for you without needing to write your own scripts at all.
0

#48 User is offline   CraigRT 

  • PipPip
  • Group: Members
  • Posts: 13
  • Joined: 2022-February-06
  • Gender:Male
  • Location:Australia

Posted 2024-August-22, 18:25

That looks interesting, but will it work in a teaching table with 3 others as well?
0

#49 User is online   smerriman 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 4,101
  • Joined: 2014-March-15
  • Gender:Male

Posted 2024-August-22, 19:17

Ah, good point, it will only deal the relevant cards to N/S, since you can't rotate deals 90 degrees. So I guess not, but that's probably the same reason a script like yours has to be messy in order to cover all of the cases. (On the other hand, dealing 5-10 hands for one side to practice then swapping seats wouldn't be the worst workaround, but maybe not what you're looking for.)
0

  • 3 Pages +
  • 1
  • 2
  • 3


Fast Reply

  

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