BBO Discussion Forums: 1NT forcing BBO Dealer Input - BBO Discussion Forums

Jump to content

Page 1 of 1

1NT forcing BBO Dealer Input

#1 User is offline   LCCastro 

  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 2010-July-06

Posted 2010-July-07, 02:14

I'm currently working on some inputs to BBO dealer program. My objective is to help teachers and students to train some specific situations
This first work generates an 1 of a major opening hand in North and a 1NT forcing response in South.

In short the conditional input look like this:
(((1S opening hand in North)and(1NT response for 1S open in South)or(1H opening hand in North)and(1NT response for 1H open in South))and(Opponents strength and shape control))

where:
(1S opening hand in North)=an opening hand with five or more spades and no longer suit than spades. If in the point range of 1NT(15-17) or 2NT (20-21), hand will not have any 5332 shape, as it is a NT opener for most people;
(1H opening hand in North)=an opening hand with five or more hearts, no longer or equal spades and no longer clubs or diamonds. If in the point range of 1NT(15-17) or 2NT (20-21), hand will not have any 5332 shape, as it is a NT opener for most people;
(1NT response for 1S open in South)=an 6-10 point range without 3+ cards of spades and without a very long suit or a 10-12.5 point range without 4+ card support. Here I assume that with 4+ card support, advancer will use some artificial bid like Bergen raises;
(1NT response for 1H open in South)=an 6-10 point range without 3+ cards of hearts, without 4+ spades and without a very long suit or a 10-12.5 point range without 4+ card support and without 4+ spades. Here I assume that with 4+ card support, advancer will use some artificial bid like Bergen raises;
(Opponents strength and shape control)=Used to avoid an extreme point and/or shape in one of the opponent's hand.

Obs:
This code uses an Kaplan and Ruben internal function for hand evaluation;
North is always the opener and South is always the advancer (sry, I don't know how to randomize that);
If you need help to use this code (as far as I know, only the browser version of BBO software allow you to use it) or don't have a clue of what is this all about, contact me on BBO and I'll help you.

Hope it can be useful to some of you. Feedback is encouraged and appreciated. My BBO Nickname is LCCastro.

Enjoy,
Leandro Collin de Castro.
0

#2 User is offline   LCCastro 

  • Pip
  • Group: Members
  • Posts: 2
  • Joined: 2010-July-06

Posted 2010-July-07, 02:18

Input to BBO's dealer program - Generates 1 of a major opening hands on North and 1NT forcing response hands on South
Copyright © 2010 by Leandro Collin de Castro (BBO Nickname: LCCastro)

This code is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This code is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

See <http://www.gnu.org/licenses/>.



(
(
######### 1S opener start
(
#condition 1 start
(
######### Shape restrictions
spades(north) >= 5 and
spades(north) >= hearts(north) and
spades(north) >= diamonds(north) and
spades(north) >= clubs(north) and

######### Strength requirements
(
(
cccc(north) >= 1250 and
cccc(north) < 1500
)
or
(
cccc(north) >= 1800 and
cccc(north) < 2000
)
)
)
#condition 1 end

or

#condition 2 start
(
######### Shape restrictions
spades(north) >= 5 and
spades(north) >= hearts(north) and
spades(north) >= diamonds(north) and
spades(north) >= clubs(north) and
shape (north, - any 5332) and

######### Strength requirements
(
(
cccc(north) >= 1500 and
cccc(north) < 1800
)
or
(
cccc(north) >= 2000 and
cccc(north) < 2200
)
)
)
#condition 2 end
)
######### 1S opener end

and

######### 1NT response to 1S open start
(
#condition 1 start
(
######### Shape restrictions
spades(south) < 3 and
hearts(south) < 7 and
diamonds(south) < 7 and
clubs(south) < 7 and

######### Strength requirements
(
cccc(south) >= 600 and
cccc(south) < 1000
)
)
#condition 1 end

or

#condition 2 start
(
######### Shape restrictions
spades(south) <= 3 and

######### Strength requirements
(
cccc(south) >= 1000 and
cccc(south) < 1250
)
)
#condition 2 end
)
######### 1NT response to 1S open end

)

or

(

######### 1H opener start
(
#condition 1 start
(
######### Shape restrictions
hearts(north) >= 5 and
hearts(north) > spades(north) and
hearts(north) >= diamonds(north) and
hearts(north) >= clubs(north) and

######### Strength requirements
(
(
cccc(north) >= 1250 and
cccc(north) < 1500
)
or
(
cccc(north) >= 1800 and
cccc(north) < 2000
)
)
)
#condition 1 end

or

#condition 2 start
(
######### Shape restrictions
hearts(north) >= 5 and
hearts(north) > spades(north) and
hearts(north) >= diamonds(north) and
hearts(north) >= clubs(north) and
shape (north, - any 5332) and

######### Strength requirements
(
(
cccc(north) >= 1500 and
cccc(north) < 1800
)
or
(
cccc(north) >= 2000 and
cccc(north) < 2200
)
)
)
#condition 2 end
)
######### 1H opener end

and

######### 1NT response to 1H open start
(
#condition 1 start
(
######### Shape restrictions
hearts(south) < 3 and
spades(south) < 4 and
diamonds(south) < 7 and
clubs(south) < 7 and

######### Strength requirements
(
cccc(south) >= 600 and
cccc(south) < 1000
)
)
#condition 1 end

or

#condition 2 start
(
######### Shape restrictions
hearts(south) <= 3 and
spades(south) < 4 and

######### Strength requirements
(
cccc(south) >= 1000 and
cccc(south) < 1250
)
)
#condition 2 end
)
######### 1NT response to 1H open end

)

)

and

######### Nice opponents start
(
######### Shape restrictions
spades(east) <= 5 and
hearts(east) <= 5 and
diamonds(east) <= 5 and
clubs(east) <= 5 and
spades(west) <= 5 and
hearts(west) <= 5 and
diamonds(west) <= 5 and
clubs(west) <= 5 and

######### Strength requirements
cccc(east) <= 1000 and
cccc(west) <= 1000
)
######### Nice opponents end
0

Page 1 of 1


Fast Reply

  

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