Dealer Scripts, summarised
#41
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
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
#42
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.
Edited to reflect pescetom's comment
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
#44
#46
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))
#47
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.
#49
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.)