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

Jump to content

  • 3 Pages +
  • 1
  • 2
  • 3

Dealer Scripts, summarised

#21 User is offline   hrothgar 

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

Posted 2014-May-02, 17:48

try the following


generate 1000

vulnerable NS
dealer north

north2s= spades(north) >=5 && hcp(north) >=8 && hcp(north) <=13 && not shape(north, any 5422, any 5332)
north2h= hearts(north) >=5 && hcp(north) >=8 && hcp(north) <=13 && not shape(north, any 5422, any 5332)
north2d= diamonds(north) >=5 && hcp(north) >=8 && hcp(north) <=13 && not shape(north, any 5422, any 5332)

condition north2s || north2h || north2d

action 
printpbn

Alderaan delenda est
0

#22 User is offline   benlessard 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,465
  • Joined: 2006-January-07
  • Location:Montreal Canada
  • Interests:All games. i really mean all of them.

Posted 2014-May-25, 14:21

Iver created some hands using bbo dealer, so they are saved in "my hand folders" is there a way to export them in a batch as a lin files ?

I didnt play them and unfortunatly they have all the same board number. It seems all i can do is export them one by one.
From Psych "I mean, Gus and I never see eye-to-eye on work stuff.
For instance, he doesn't like being used as a human shield when we're being shot at.
I happen to think it's a very noble way to meet one's maker, especially for a guy like him.
Bottom line is we never let that difference of opinion interfere with anything."
0

#23 User is offline   Ivan696 

  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 2013-January-19

Posted 2014-August-30, 06:05

Hi ! I have a problem. I want to generate boards with this conditions:
N: 11-22PC, 5+
S: 3-6PC, 3-4 OR 7-11PC, <4 AND <3

OR

N: 11-22PC, 5+
S: 3-6PC, 3-4 OR 7-11PC, <3

This is my code :
produce 50
dealer north
1h = ( hcp(north)>=11 && hcp(north)<=22 && hearts(north)>=5 )
1s = ( hcp(north)>=11 && hcp(north)<=22 && spades(north)>=5 )
1nAh =  (hcp(south)>=3 && hcp(south)<=6 && hearts(south)>=3 && hearts(south)<=4)
|| (hcp(south)>=7 && hcp(south)<=11 && hearts(south)<3 && spades(south)<4)
1nAs = (hcp(south)>=3 && hcp(south)<=6 && spades(south)>=3 && spades(south)<=4)
|| (hcp(south)>=7 && hcp(south)<=11 && spades(south)<3)
condition 1h && 1nAh || 1s && 1nAs
action 
printpbn

What's wrong here ?
0

#24 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 2014-August-30, 15:24

View PostIvan696, on 2014-August-30, 06:05, said:

Hi ! I have a problem. I want to generate boards with this conditions:
N: 11-22PC, 5+
S: 3-6PC, 3-4 OR 7-11PC, <4 AND <3

OR

N: 11-22PC, 5+
S: 3-6PC, 3-4 OR 7-11PC, <3

This is my code :
produce 50
dealer north
1h = ( hcp(north)>=11 && hcp(north)<=22 && hearts(north)>=5 )
1s = ( hcp(north)>=11 && hcp(north)<=22 && spades(north)>=5 )
1nAh =  (hcp(south)>=3 && hcp(south)<=6 && hearts(south)>=3 && hearts(south)<=4)
|| (hcp(south)>=7 && hcp(south)<=11 && hearts(south)<3 && spades(south)<4)
1nAs = (hcp(south)>=3 && hcp(south)<=6 && spades(south)>=3 && spades(south)<=4)
|| (hcp(south)>=7 && hcp(south)<=11 && spades(south)<3)
condition 1h && 1nAh || 1s && 1nAs
action 
printpbn

What's wrong here ?
Dunno. Maybe variable names. Try...
produce 50
dealer north
n1 = ( hcp(north)>=11 && hcp(north)<=22 && hearts(north)>=5 )
n2 = ( hcp(north)>=11 && hcp(north)<=22 && spades(north)>=5 )
s1 =  (hcp(south)>=3 && hcp(south)<=6 && hearts(south)>=3 && hearts(south)<=4)
|| (hcp(south)>=7 && hcp(south)<=11 && hearts(south)<3 && spades(south)<4)
s2 = (hcp(south)>=3 && hcp(south)<=6 && spades(south)>=3 && spades(south)<=4)
|| (hcp(south)>=7 && hcp(south)<=11 && spades(south)<3)
condition n1 && s1 || n2 && s2
action 
printpbn

0

#25 User is offline   FM75 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 496
  • Joined: 2009-December-12

Posted 2014-August-30, 17:18

View PostIvan696, on 2014-August-30, 06:05, said:

Hi ! I have a problem. I want to generate boards with this conditions:
N: 11-22PC, 5+
S: 3-6PC, 3-4 OR 7-11PC, <4 AND <3

OR

N: 11-22PC, 5+
S: 3-6PC, 3-4 OR 7-11PC, <3

This is my code :
produce 50
dealer north
1h = ( hcp(north)>=11 && hcp(north)<=22 && hearts(north)>=5 )
1s = ( hcp(north)>=11 && hcp(north)<=22 && spades(north)>=5 )
1nAh =  (hcp(south)>=3 && hcp(south)<=6 && hearts(south)>=3 && hearts(south)<=4)
|| (hcp(south)>=7 && hcp(south)<=11 && hearts(south)<3 && spades(south)<4)
1nAs = (hcp(south)>=3 && hcp(south)<=6 && spades(south)>=3 && spades(south)<=4)
|| (hcp(south)>=7 && hcp(south)<=11 && spades(south)<3)
condition 1h && 1nAh || 1s && 1nAs
action 
printpbn

What's wrong here ?


I played around with this earlier, including the variable name suggestion above. I am a bit puzzled. I would see if you can get each type to work separately. Once you get each to work, then try combining. If you have trouble with each, continue to narrow it down.
0

#26 User is offline   jonapier 

  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 2015-April-05

Posted 2017-August-29, 11:21

I think I posted this in the wrong area so posting here now:

Hi. Can someone help me by providing scripts for random Preempt and weak two hands for practicing? I see a couple that has specific for leaping Michael's, takeout, etc... But I'd like totally random if possible..
Thank you!! :D
0

#27 User is offline   hrothgar 

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

Posted 2017-August-29, 11:48

View Postjonapier, on 2017-August-29, 11:21, said:

Hi. Can someone help me by providing scripts for random Preempt and weak two hands for practicing? I see a couple that has specific for leaping Michael's, takeout, etc... But I'd like totally random if possible..
Thank you!! :D


Show me what you've tried so far and I'll be happy to try to debug it for you...
Alderaan delenda est
0

#28 User is offline   biggerclub 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 278
  • Joined: 2013-May-23

Posted 2018-July-01, 21:59

Top and bottom overcall practice on BBO:

(hcp(west)>=12 and (clubs(west)>hearts(west) and clubs(west)>spades(west) and ((clubs(west)>diamonds(west) or shape(west, any 4333)) and shape(north, 5x5x + 6x5x + 6x6x + 7060) and hcp(north)>9)))

or

(hcp(west)>=12 and (diamonds(west)>hearts(west) and diamonds(west)>spades(west) and ((diamonds(west)>clubs(west) or shape(west, 3244 + 2344 + 1444 +4144)) and shape(north, 5xx5 + 6xx5 + 6xx6 + 7006) and hcp(north)>9)))

or

((hcp(west)>=12 and (hearts(west)>spades(west) and hearts(west)>=diamonds(west) and hearts(west)>=clubs(west) and hearts(west)>=5) and shape(north, 5xx5 + 6xx5 + 6xx6 + 7006) and hcp(north)>9))

or

((hcp(west)>=12 and (spades(west)>=hearts(west) and spades(west)>=diamonds(west) and spades(west)>=clubs(west) and spades(west)>=5) and shape(north, x5x5 + x6x5 + x6x6 + 0706) and hcp(north)>9))
0

#29 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-June-29, 20:55

"Necro" warning :)

View Postpatiw, on 2014-May-02, 17:19, said:

so this code
generate 10000
produce 1000
vulnerable NS
dealer north
north2h=((hearts(north)>=5 && hcp(north)>=8 && hcp(north)<=13 && not shape(north, any 5422, any 5332) )
north2d=(diamonds(north)>=5 && hcp(north)>=8 && hcp(north)<=13 && not shape(north, any 5422, any 5332) )
north2s=(spades(north)>=5 && hcp(north)>=8 && hcp(north)<=13) && not shape(north, any 5422, any 5332) )
condition north2h || north2d || north2s
action printpbn

should working ?


Instead, PatiW might try

# Fantunes 2D/H/S opener.
produce 1000
vulnerable NS
dealer north
mediumShapely = 7 < hcp (north) and  hcp(north) < 14 and not shape (north, any 5422 + any 5332)  
north2D = diamonds (north) > 4 and mediumShapely 
north2H = hearts (north) > 4 and mediumShapely 
north2S = spades (north) > 4 and mediumShapely 
condition north2D or north2H or north2S
action printpbn

0

#30 User is offline   biggerclub 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 278
  • Joined: 2013-May-23

Posted 2020-April-20, 19:15

Is there a command that allows me to define HCP for two hands combined? For example, HCP (north+south) <23 and >17?
0

#31 User is offline   Gerardo 

  • PipPipPipPipPipPip
  • Group: Admin
  • Posts: 2,493
  • Joined: 2003-February-12
  • Gender:Male
  • Location:Dartmouth, NS, Canada

Posted 2020-April-20, 22:40

View Postbiggerclub, on 2020-April-20, 19:15, said:

Is there a command that allows me to define HCP for two hands combined? For example, HCP (north+south) <23 and >17?


hcp_ns = hcp(south)+hcp(north)

condition hcp_ns > 17 and hcp_ns < 23

#32 User is offline   biggerclub 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 278
  • Joined: 2013-May-23

Posted 2020-April-21, 03:20

View PostGerardo, on 2020-April-20, 22:40, said:

hcp_ns = hcp(south)+hcp(north)

condition hcp_ns > 17 and hcp_ns < 23



Thank you.
0

#33 User is offline   biggerclub 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 278
  • Joined: 2013-May-23

Posted 2020-April-21, 10:05

View PostGerardo, on 2020-April-20, 22:40, said:

hcp_ns = hcp(south)+hcp(north)

condition hcp_ns > 17 and hcp_ns < 23


This works better on BBO (not sure about dealer generally): (hcp(north)+hcp(south)>17) and (hcp(north)+hcp(south)<23)
0

#34 User is offline   raja1306 

  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 2021-January-13
  • Gender:Male

Posted 2021-March-04, 06:09

View PostRain, on 2009-April-16, 09:18, said:

This thread is for summarising the verified user-created scripts to Dealer, the deal generator used by web BBO. You can use Dealer for bidding or teaching table practise with web BBO.

In order to use the scripts, just copy/paste the relevant scripts when using new BBO's bidding/teaching table DEAL SOURCE ADVANCED Option.

Hrothgar's 4 ace point count
Hrothgar's Kaplan + Rubens Point Count



I have a created a generic LIN generator depending on the definition given. The tool (called BLINK) is available at the url -
Click on the hyperlink to access. drop a mail if you can't figure out something
0

#35 User is offline   bprepeat 

  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 2021-March-06
  • Gender:Male

Posted 2021-March-06, 20:21

I have created a modern front-end user interface for the BBO dealer. (it internally generates scripts, executes and then emails the deals - in LIN format). The tool is called BLINK and it can be found at

https://bid-play-rep...stapp.com/main/
0

#36 User is offline   adamw 

  • PipPip
  • Group: Members
  • Posts: 34
  • Joined: 2005-September-25

Posted 2021-September-29, 12:49

Charles Lee has a nice collection of Dealer constraints suitable for BBO here:

http://charlesandger...onstraints.html

I learned about it here:

http://bridgewinners...ice-xyz-on-bbo/
0

#37 User is offline   pgr73 

  • Pip
  • Group: Members
  • Posts: 3
  • Joined: 2020-March-20

Posted 2023-April-18, 08:14

Hi everybody,
I am trying to generate hands to practise 2♣️ Gazzilli bidding.
I have created the hands I need thus:
shape(north, 55xx) && (hcp(north)>=14 && hcp(north)<=20)) or
(shape(north, 65xx) && hcp(north)>=17) or
(shape(north, 56xx) && hcp(north)>=17) or
(shape(north, 54xx) && hcp(north)>=11) or
(shape(north, 5x4x) && hcp(north)>=17) or
(shape(north, 5x5x) && hcp(north)>=17) or
(shape(north, 5x4x) && hcp(north)>=11) or
(shape(north, 5xx4) && hcp(north)>=11) or
(shape(north, 5xx5) && hcp(north)>=11) or
(shape(north, x54x) && hcp(north)>=17) or
(shape(north, x55x) && hcp(north)>=17) or
(shape(north, x5x4) && hcp(north)>=11) or
(shape(north, x5x5) && hcp(north)>=11)
Now I need the following conditions.
1) when opener bids 1H (5/6♥️max5♠️max5♦️max♣️), responder bids 1S (max2♥️4-6♠️max5♦️max5♣️, hcp range 4+) or 1NT (max2♥️max3♠️max5♦️max5♣️, hcp range 4-10)
2) when opener bids 1S (5/6♠️max5♥️max5♦️max5♣️), responder bids 1NT (max2♠️max6❤️max5♦️max5♣️, hcp range 4-10)
Is it possible to create the appropriate syntax?
Thank you in advance,
Pietro (pgr73)
0

#38 User is offline   DavidKok 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,553
  • Joined: 2020-March-30
  • Gender:Male
  • Location:Netherlands

Posted 2023-April-18, 08:37

I am not sure that the hand types you presented are correct for Gazzilli. The way I understand it, a 2 Gazzilli rebid shows either real clubs or any strong hand. You have included some other weak hands (i.e. 54 and 54 with 11+ hcp) and excluded a range of strong hands (balanced, or 6(+)M).
You also excluded some hand types from the 1NT response that I would normally expect to be included (i.e. 6-10 with a weak 6cm).

Personally I would first define the openings, then define/restrict responder's rebid, then define the Gazzilli 2 rebid. I have a previously written script for the 1 opening only, it looks like this:

Spoiler
In chunks, the first paragraph defines North's opening bid, the second defines East's possible overcall, the third defines South's responses, the fourth defines West's possible overcalls, the fifth defines North's rebids and the last defines South's rebids (I excluded sixth hand interference - most of the time it is too risky to enter over (1)-P-(1NT)-P; (2*)-?). My Gazzilli is 16+ any or spades-clubs weak. You can tweak and/or simplify this to meet your requirements. If you want to also include 1 openings you can mostly reuse the code, though some of the definitions will have to be adapted. For starters, responder might have a 1 response rather than 1NT. But also the interference changes, i.e. spade overcalls, takeout doubles and Michaels hands in second and fourth seat.
Most of the code is superfluous for your question. I hope it helps anyway, let me know if it would be more useful if I took out the irrelevant lines.
0

#39 User is offline   adriennek 

  • Pip
  • Group: Members
  • Posts: 8
  • Joined: 2015-August-08

Posted 2023-July-11, 13:42

Thank you for posting these examples. This is an old thread. Does the same syntax still work on BBO?


View PostGerben42, on 2010-October-30, 11:44, said:

Here are two simple scripts to make you get the feel of it:

2-level opening bids:

( hcp(north)>=22 or
(( hcp(north)>=6 and hcp(north)<=10) and
( (spades(north)==6 and hcp(north,spades)>=5) or
(hearts(north)==6 and hcp(north,hearts)>=5) or
(diamonds(north)==6 and hcp(north,diamonds)>=5 ))))

1m opening bid + simple overcall

(( hcp(north)>=11 and clubs(north)>=5 and spades(north)<=4 and hearts(north)<=4 ) or
( hcp(north)>=11 and diamonds(north)>=5 and spades(north)<=4 and hearts(north)<=4 ) or
( hcp(north)>=12 and hcp(north)<=14 and spades(north)<=4 and hearts(north)<=4 ) or
( hcp(north)>=18 and hcp(north)<=19 and spades(north)<=4 and hearts(north)<=4 )
) and
(( hcp(east)>=9 and spades(east)>=5 ) or
( hcp(east)>=9 and hearts(east)>=5 ) or
( hcp(east)>=11 and clubs(east)>=6) or
( hcp(east)>=11 and diamonds(east)>=6))

0

#40 User is offline   DavidKok 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,553
  • Joined: 2020-March-30
  • Gender:Male
  • Location:Netherlands

Posted 2023-July-13, 08:54

Yes, the syntax for dealer scripts has not changed (as far as I know). The only difference is that when I use the command line version I specify values or functions for the 'generate', 'produce' and 'action' key words, whereas BBO scripts require these to be removed.
0

  • 3 Pages +
  • 1
  • 2
  • 3


Fast Reply

  

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