ADavidBailey / Practice-Bidding-Scenarios

This repository contains BBOalert input file that configures the Shortcuts to set the BBO Dealer code for various bidding scenarios.
https://www.facebook.com/groups/598917089100836
5 stars 3 forks source link

I found errors in some of the scripts #3

Closed ThorvaldAagaard closed 11 months ago

ThorvaldAagaard commented 11 months ago

1; Opps doubling Stayman a: top4 should be >= 2 b: We play Double as 15+

2: Dealer Minor Suit Opener There is an extra space between not and Major in line 8

ADavidBailey commented 11 months ago

Thanks, Thorvalad. I've fixed #2.

When you say "We play Double as 15+" to whom are you referring?

On Tue, Nov 7, 2023 at 3:19 PM Thorvald Aagaard @.***> wrote:

1; Opps doubling Stayman a: top4 should be >= 2 b: We play Double as 15+

2: Dealer Minor Suit Opener There is an extra space between not and Major in line 8

— Reply to this email directly, view it on GitHub https://github.com/ADavidBailey/Practice-Bidding-Scenarios/issues/3, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4TXI4NL3MI7NQJ5WGWS3TYDKQWNAVCNFSM6AAAAAA7B3CVZKVHI2DSMVQWIX3LMV43ASLTON2WKOZRHE4DEMRVGAYDKNY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- David Bailey 918-520-9700 mobile

ADavidBailey commented 11 months ago

Oops!. I apologize for misspelling your name, Thorvlad.

ThorvaldAagaard commented 11 months ago

Me and my partner, and it is common, when 2C is https://www.bridgebum.com/crawling_stayman.php as it is defined in Sayc.

3rd time you will get my name right :-)

ADavidBailey commented 11 months ago

Third time is charm, Thorvald. Are you related to the musician?

The reason I asked...

I created the scenarios based on a Gavin Wolpert lesson. I'll revisit it to see if I misunderstood what he said. In any event, I'll report back here.

This is exacting stuff. I appreciate your help.

ThorvaldAagaard commented 11 months ago

No need to change. Better to follow Gavins lessons. Then you can always add a new script for that specific need.

I am not related to any musician :-)

Btw: I am using your scripts to generate deals for BEN to practice, so if you need pbn-files for each script, just let me know. To automate it I had to make some small justifications to your files, as the input can't go directly into the dealer program

ADavidBailey commented 11 months ago

I have it configured as a good 6 clubs, weak. I'll search for Gavin's lesson.

I'm interested to see what you've done with the PBN file.

Just after I started working on Practice Bidding Scenarios, I wrote up some background information. Before I published it, I split it into Part 1 and Part 2. I think you'll find Part 2 Interesting.

I'll need some help to do Part 2. I'll need to persuade Stanislaw and Matthew that enough people are interested in it.

On Tue, Nov 7, 2023 at 4:30 PM Thorvald Aagaard @.***> wrote:

No need to change. Better to follow Gavins lessons. Then you can always add a new script for that specific need.

I am not related to any musician :-)

Btw: I am using your scripts to generate deals for BEN to practice, so if you need pbn-files for each script, just let me know. To automate it I had to make some small justifications to your files, as the input can't go directly into the dealer program

— Reply to this email directly, view it on GitHub https://github.com/ADavidBailey/Practice-Bidding-Scenarios/issues/3#issuecomment-1800293767, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4TXI5KERGIKPF6VCODSC3YDKY7TAVCNFSM6AAAAAA7B3CVZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBQGI4TGNZWG4 . You are receiving this because you commented.Message ID: @.***>

-- David Bailey 918-520-9700 mobile

ThorvaldAagaard commented 11 months ago

(1N)-P-(2C)-X is fine as 6+ good clubs, but you had Top4 == 2, and I just wanted it changed to >=2

I did read the Part 1 on bridgewinners.

From a file of yours I just added the lines need for generating a pbn-file (using Python - easy to learn). So from a script like this

Script,Jordan2N
setDealerCode(
`
# Jordan 2N

# Defining Major Fit
SpadeFit = ((spades(south)>4 and hearts(south)<5) and spades(north)>2)
HeartFit = ((hearts(south)>4 and spades(south)<5) and hearts(north)>2)
MajorFit = (SpadeFit or HeartFit)

ShortSpade = SpadeFit and spade(west)<3
ShortHeart = HeartFit and heart(west)<3
ShortMajor = (ShortSpade or ShortHeart) and shape(west, any 4441+5431+5440)

# South opens 1M
hcp(south)>11 and hcp(south)<15 and MajorFit and

# West  makes a Takeout X
hcp(west)>11 and hcp(west)< 15 and ShortMajor and

# North bids 2N showing 3/4-card support and invitational or better
hcp(north)>10 and hcp(north)<15 and MajorFit

`
)
Script
Button,Jordan 2N,Jordan 2N\n%Jordan2N%

I generated a new file that looks like this

generate 100000000

produce 500

SpadeFit = ((spades(south)>4 and hearts(south)<5) and spades(north)>2)
HeartFit = ((hearts(south)>4 and spades(south)<5) and hearts(north)>2)
MajorFit = (SpadeFit or HeartFit)
ShortSpade = SpadeFit and spade(west)<3
ShortHeart = HeartFit and heart(west)<3
ShortMajor = (ShortSpade or ShortHeart) and shape(west, any 4441+5431+5440)

condition
# Jordan 2N
# Defining Major Fit
# South opens 1M
hcp(south)>11 and hcp(south)<15 and MajorFit and
# West  makes a Takeout X
hcp(west)>11 and hcp(west)< 15 and ShortMajor and
# North bids 2N showing 3/4-card support and invitational or better
hcp(north)>10 and hcp(north)<15 and MajorFit

action printpbn

I can call dealer locally, but it is also available at: https://www.bridgebase.com/tools/dealer/dealer.php

and the output is a PBN-file.

About your part 2 you should have a look at https://cuebids.com/ - they have announced that we will be able to provide our own deals

I am thinking about enabling BEN for use in such practice, but currently we are focusing on getting the more common parts of the bidding ok

ADavidBailey commented 11 months ago

Thanks. I'm not familiar with BEN. How do I find out more?

On Tue, Nov 7, 2023 at 5:15 PM Thorvald Aagaard @.***> wrote:

(1N)-P-(2C)-X is fine as 6+ good clubs, but you had Top4 == 2, and I just wanted it changed to >=2

I did read the Part 1 on bridgewinners.

From a file of yours I just added the lines need for generating a pbn-file (using Python - easy to learn). So from a script like this

Script,Jordan2N setDealerCode( `

Jordan 2N

Defining Major Fit

SpadeFit = ((spades(south)>4 and hearts(south)<5) and spades(north)>2) HeartFit = ((hearts(south)>4 and spades(south)<5) and hearts(north)>2) MajorFit = (SpadeFit or HeartFit)

ShortSpade = SpadeFit and spade(west)<3 ShortHeart = HeartFit and heart(west)<3 ShortMajor = (ShortSpade or ShortHeart) and shape(west, any 4441+5431+5440)

South opens 1M

hcp(south)>11 and hcp(south)<15 and MajorFit and

West makes a Takeout X

hcp(west)>11 and hcp(west)< 15 and ShortMajor and

North bids 2N showing 3/4-card support and invitational or better

hcp(north)>10 and hcp(north)<15 and MajorFit

` ) Script Button,Jordan 2N,Jordan 2N\n%Jordan2N%

I generated a new file that looks like this

generate 100000000

produce 500

SpadeFit = ((spades(south)>4 and hearts(south)<5) and spades(north)>2) HeartFit = ((hearts(south)>4 and spades(south)<5) and hearts(north)>2) MajorFit = (SpadeFit or HeartFit) ShortSpade = SpadeFit and spade(west)<3 ShortHeart = HeartFit and heart(west)<3 ShortMajor = (ShortSpade or ShortHeart) and shape(west, any 4441+5431+5440)

condition

Jordan 2N

Defining Major Fit

South opens 1M

hcp(south)>11 and hcp(south)<15 and MajorFit and

West makes a Takeout X

hcp(west)>11 and hcp(west)< 15 and ShortMajor and

North bids 2N showing 3/4-card support and invitational or better

hcp(north)>10 and hcp(north)<15 and MajorFit

action printpbn

I can call dealer locally, but it is also available at: https://www.bridgebase.com/tools/dealer/dealer.php

and the output is a PBN-file.

About your part 2 you should have a look at https://cuebids.com/ - they have announced that we will be able to provide our own deals

I am thinking about enabling BEN for use in such practice, but currently we are focusing on getting the more common parts of the bidding ok

— Reply to this email directly, view it on GitHub https://github.com/ADavidBailey/Practice-Bidding-Scenarios/issues/3#issuecomment-1800352610, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4TXI5H472RBK4V4EQITOTYDK6KHAVCNFSM6AAAAAA7B3CVZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBQGM2TENRRGA . You are receiving this because you commented.Message ID: @.***>

-- David Bailey 918-520-9700 mobile

ThorvaldAagaard commented 11 months ago

You can read more about BEN on BridgeWinners or on this repository: https://github.com/lorserker/ben

ADavidBailey commented 11 months ago

As you probably know, I use https://www.bridgebase.com/tools/dealer/dealer.php

How do you rotate the hands to get them into duplicate boards for Dealer 2 or a .lin file for import into BBO?

How do you intermix hands from several scenarios so that they don't occur in clusters?

How do you play a set of hands from a variety of bidding scenarios?

On Tue, Nov 7, 2023 at 5:15 PM Thorvald Aagaard @.***> wrote:

(1N)-P-(2C)-X is fine as 6+ good clubs, but you had Top4 == 2, and I just wanted it changed to >=2

I did read the Part 1 on bridgewinners.

From a file of yours I just added the lines need for generating a pbn-file (using Python - easy to learn). So from a script like this

Script,Jordan2N setDealerCode( `

Jordan 2N

Defining Major Fit

SpadeFit = ((spades(south)>4 and hearts(south)<5) and spades(north)>2) HeartFit = ((hearts(south)>4 and spades(south)<5) and hearts(north)>2) MajorFit = (SpadeFit or HeartFit)

ShortSpade = SpadeFit and spade(west)<3 ShortHeart = HeartFit and heart(west)<3 ShortMajor = (ShortSpade or ShortHeart) and shape(west, any 4441+5431+5440)

South opens 1M

hcp(south)>11 and hcp(south)<15 and MajorFit and

West makes a Takeout X

hcp(west)>11 and hcp(west)< 15 and ShortMajor and

North bids 2N showing 3/4-card support and invitational or better

hcp(north)>10 and hcp(north)<15 and MajorFit

` ) Script Button,Jordan 2N,Jordan 2N\n%Jordan2N%

I generated a new file that looks like this

generate 100000000

produce 500

SpadeFit = ((spades(south)>4 and hearts(south)<5) and spades(north)>2) HeartFit = ((hearts(south)>4 and spades(south)<5) and hearts(north)>2) MajorFit = (SpadeFit or HeartFit) ShortSpade = SpadeFit and spade(west)<3 ShortHeart = HeartFit and heart(west)<3 ShortMajor = (ShortSpade or ShortHeart) and shape(west, any 4441+5431+5440)

condition

Jordan 2N

Defining Major Fit

South opens 1M

hcp(south)>11 and hcp(south)<15 and MajorFit and

West makes a Takeout X

hcp(west)>11 and hcp(west)< 15 and ShortMajor and

North bids 2N showing 3/4-card support and invitational or better

hcp(north)>10 and hcp(north)<15 and MajorFit

action printpbn

I can call dealer locally, but it is also available at: https://www.bridgebase.com/tools/dealer/dealer.php

and the output is a PBN-file.

About your part 2 you should have a look at https://cuebids.com/ - they have announced that we will be able to provide our own deals

I am thinking about enabling BEN for use in such practice, but currently we are focusing on getting the more common parts of the bidding ok

— Reply to this email directly, view it on GitHub https://github.com/ADavidBailey/Practice-Bidding-Scenarios/issues/3#issuecomment-1800352610, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4TXI5H472RBK4V4EQITOTYDK6KHAVCNFSM6AAAAAA7B3CVZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBQGM2TENRRGA . You are receiving this because you commented.Message ID: @.***>

-- David Bailey 918-520-9700 mobile

ThorvaldAagaard commented 11 months ago

When I use the boards I have a fixed seating and dealer, as Robots don't care getting the same type of hand over and over again.

The training is done outside BBO, and I have no need for mixing.

I have created a few sets: https://bidding.snippen.dk/practice/practice.asp

and I have some homemade software to rotate deals.

But you might be able to use Bridge Composer for all your tasks: https://bridgecomposer.com/Download.htm

ADavidBailey commented 11 months ago

This is not clear to me. Did you read Part 2? If not, please do so. Thanks.

On Tue, Nov 7, 2023 at 5:15 PM Thorvald Aagaard @.***> wrote:

(1N)-P-(2C)-X is fine as 6+ good clubs, but you had Top4 == 2, and I just wanted it changed to >=2

I did read the Part 1 on bridgewinners.

From a file of yours I just added the lines need for generating a pbn-file (using Python - easy to learn). So from a script like this

Script,Jordan2N setDealerCode( `

Jordan 2N

Defining Major Fit

SpadeFit = ((spades(south)>4 and hearts(south)<5) and spades(north)>2) HeartFit = ((hearts(south)>4 and spades(south)<5) and hearts(north)>2) MajorFit = (SpadeFit or HeartFit)

ShortSpade = SpadeFit and spade(west)<3 ShortHeart = HeartFit and heart(west)<3 ShortMajor = (ShortSpade or ShortHeart) and shape(west, any 4441+5431+5440)

South opens 1M

hcp(south)>11 and hcp(south)<15 and MajorFit and

West makes a Takeout X

hcp(west)>11 and hcp(west)< 15 and ShortMajor and

North bids 2N showing 3/4-card support and invitational or better

hcp(north)>10 and hcp(north)<15 and MajorFit

` ) Script Button,Jordan 2N,Jordan 2N\n%Jordan2N%

I generated a new file that looks like this

generate 100000000

produce 500

SpadeFit = ((spades(south)>4 and hearts(south)<5) and spades(north)>2) HeartFit = ((hearts(south)>4 and spades(south)<5) and hearts(north)>2) MajorFit = (SpadeFit or HeartFit) ShortSpade = SpadeFit and spade(west)<3 ShortHeart = HeartFit and heart(west)<3 ShortMajor = (ShortSpade or ShortHeart) and shape(west, any 4441+5431+5440)

condition

Jordan 2N

Defining Major Fit

South opens 1M

hcp(south)>11 and hcp(south)<15 and MajorFit and

West makes a Takeout X

hcp(west)>11 and hcp(west)< 15 and ShortMajor and

North bids 2N showing 3/4-card support and invitational or better

hcp(north)>10 and hcp(north)<15 and MajorFit

action printpbn

I can call dealer locally, but it is also available at: https://www.bridgebase.com/tools/dealer/dealer.php

and the output is a PBN-file.

About your part 2 you should have a look at https://cuebids.com/ - they have announced that we will be able to provide our own deals

I am thinking about enabling BEN for use in such practice, but currently we are focusing on getting the more common parts of the bidding ok

— Reply to this email directly, view it on GitHub https://github.com/ADavidBailey/Practice-Bidding-Scenarios/issues/3#issuecomment-1800352610, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4TXI5H472RBK4V4EQITOTYDK6KHAVCNFSM6AAAAAA7B3CVZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBQGM2TENRRGA . You are receiving this because you commented.Message ID: @.***>

-- David Bailey 918-520-9700 mobile

ADavidBailey commented 11 months ago

I changed to Top4>1

On Tue, Nov 7, 2023 at 5:15 PM Thorvald Aagaard @.***> wrote:

(1N)-P-(2C)-X is fine as 6+ good clubs, but you had Top4 == 2, and I just wanted it changed to >=2

I did read the Part 1 on bridgewinners.

From a file of yours I just added the lines need for generating a pbn-file (using Python - easy to learn). So from a script like this

Script,Jordan2N setDealerCode( `

Jordan 2N

Defining Major Fit

SpadeFit = ((spades(south)>4 and hearts(south)<5) and spades(north)>2) HeartFit = ((hearts(south)>4 and spades(south)<5) and hearts(north)>2) MajorFit = (SpadeFit or HeartFit)

ShortSpade = SpadeFit and spade(west)<3 ShortHeart = HeartFit and heart(west)<3 ShortMajor = (ShortSpade or ShortHeart) and shape(west, any 4441+5431+5440)

South opens 1M

hcp(south)>11 and hcp(south)<15 and MajorFit and

West makes a Takeout X

hcp(west)>11 and hcp(west)< 15 and ShortMajor and

North bids 2N showing 3/4-card support and invitational or better

hcp(north)>10 and hcp(north)<15 and MajorFit

` ) Script Button,Jordan 2N,Jordan 2N\n%Jordan2N%

I generated a new file that looks like this

generate 100000000

produce 500

SpadeFit = ((spades(south)>4 and hearts(south)<5) and spades(north)>2) HeartFit = ((hearts(south)>4 and spades(south)<5) and hearts(north)>2) MajorFit = (SpadeFit or HeartFit) ShortSpade = SpadeFit and spade(west)<3 ShortHeart = HeartFit and heart(west)<3 ShortMajor = (ShortSpade or ShortHeart) and shape(west, any 4441+5431+5440)

condition

Jordan 2N

Defining Major Fit

South opens 1M

hcp(south)>11 and hcp(south)<15 and MajorFit and

West makes a Takeout X

hcp(west)>11 and hcp(west)< 15 and ShortMajor and

North bids 2N showing 3/4-card support and invitational or better

hcp(north)>10 and hcp(north)<15 and MajorFit

action printpbn

I can call dealer locally, but it is also available at: https://www.bridgebase.com/tools/dealer/dealer.php

and the output is a PBN-file.

About your part 2 you should have a look at https://cuebids.com/ - they have announced that we will be able to provide our own deals

I am thinking about enabling BEN for use in such practice, but currently we are focusing on getting the more common parts of the bidding ok

— Reply to this email directly, view it on GitHub https://github.com/ADavidBailey/Practice-Bidding-Scenarios/issues/3#issuecomment-1800352610, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4TXI5H472RBK4V4EQITOTYDK6KHAVCNFSM6AAAAAA7B3CVZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBQGM2TENRRGA . You are receiving this because you commented.Message ID: @.***>

-- David Bailey 918-520-9700 mobile

ThorvaldAagaard commented 11 months ago

I did read part 2 and have just read it again. It is an interesting project, but integration into BBO is not for me - I have done some work on BBOAlert, so I know how difficult it can be. That is Stan that you will have to go to.

Bridge Composer was meant for you to do the shuffling and rotation - but still manually.

ADavidBailey commented 11 months ago

The help I need is to convince Stan and Matt that this is something that people will use.

On Wed, Nov 8, 2023 at 10:19 AM Thorvald Aagaard @.***> wrote:

I did read part 2 and have just read it again. It is an interesting project, but integration into BBO is not for me - I have done some work on BBOAlert, so I know how difficult it can be. That is Stan that you will have to go to.

Bridge Composer was meant for you to do the shuffling and rotation - but still manually.

— Reply to this email directly, view it on GitHub https://github.com/ADavidBailey/Practice-Bidding-Scenarios/issues/3#issuecomment-1802225170, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4TXI2AUS2Y47EONZCVOLLYDOWHNAVCNFSM6AAAAAA7B3CVZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBSGIZDKMJXGA . You are receiving this because you commented.Message ID: @.***>

-- David Bailey 918-520-9700 mobile

ThorvaldAagaard commented 11 months ago

A difficult task. Each time I find new ways we can practice my partner drops it after some tries.

The danish bridge federation has just publish a paper of how to use BBO for bidding practice - including some scripts, and some is using it - but training will probably never be a hit.

ADavidBailey commented 11 months ago

Please promote Practice Bidding Scenarios when you have a chance. I hope it's widely used.

On Wed, Nov 8, 2023 at 10:37 AM Thorvald Aagaard @.***> wrote:

A difficult task. Each time I find new ways we can practice my partner drops it after some tries.

The danish bridge federation has just publish a paper of how to use BBO for bidding practice - including some scripts, and some is using it - but training will probably never be a hit.

— Reply to this email directly, view it on GitHub https://github.com/ADavidBailey/Practice-Bidding-Scenarios/issues/3#issuecomment-1802258689, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4TXI3J5OOADHQBGOAH6A3YDOYNTAVCNFSM6AAAAAA7B3CVZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBSGI2TQNRYHE . You are receiving this because you commented.Message ID: @.***>

-- David Bailey 918-520-9700 mobile

ADavidBailey commented 11 months ago

Making practice more engaging is why I want to BID and PLAY these designed hands.

On Wed, Nov 8, 2023 at 10:37 AM Thorvald Aagaard @.***> wrote:

A difficult task. Each time I find new ways we can practice my partner drops it after some tries.

The danish bridge federation has just publish a paper of how to use BBO for bidding practice - including some scripts, and some is using it - but training will probably never be a hit.

— Reply to this email directly, view it on GitHub https://github.com/ADavidBailey/Practice-Bidding-Scenarios/issues/3#issuecomment-1802258689, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4TXI3J5OOADHQBGOAH6A3YDOYNTAVCNFSM6AAAAAA7B3CVZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBSGI2TQNRYHE . You are receiving this because you commented.Message ID: @.***>

-- David Bailey 918-520-9700 mobile

ThorvaldAagaard commented 11 months ago

I posted this https://www2.bridge.dk/Default.aspx?ID=17874&ThreadID=14683&PID=23033 on the Danish Bridge federation site

ADavidBailey commented 11 months ago

Thanks.

On Wed, Nov 8, 2023 at 11:03 AM Thorvald Aagaard @.***> wrote:

I posted this https://www2.bridge.dk/Default.aspx?ID=17874&ThreadID=14683&PID=23033 on the Danish Bridge federation site

— Reply to this email directly, view it on GitHub https://github.com/ADavidBailey/Practice-Bidding-Scenarios/issues/3#issuecomment-1802301764, or unsubscribe https://github.com/notifications/unsubscribe-auth/BC4TXI463ZP5KICMKYJO733YDO3NPAVCNFSM6AAAAAA7B3CVZKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMBSGMYDCNZWGQ . You are receiving this because you commented.Message ID: @.***>

-- David Bailey 918-520-9700 mobile

ADavidBailey commented 11 months ago

Thorvald, do I need to do anything more on this issue?

ThorvaldAagaard commented 11 months ago

No, that is fine, and I will close this issue.