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

Jump to content

  • 2 Pages +
  • 1
  • 2

Dealer Scripts, summarised

#21 User is offline   hrothgar 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 12,998
  • 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,440
  • 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 online   nige1 

  • 5-level belongs to me
  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 7,034
  • 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 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 12,998
  • 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

Share this topic:


  • 2 Pages +
  • 1
  • 2


Fast Reply

  

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