BBO Discussion Forums: Can we get ChatGPT to play a hand of bridge? - BBO Discussion Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Can we get ChatGPT to play a hand of bridge?

#1 User is offline   nullve 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,295
  • Joined: 2014-April-08
  • Gender:Male
  • Location:Norway
  • Interests:partscores

Posted 2023-March-02, 07:53

For example, we could try to replay the following hand



with ChatGPT sitting North and South.

Me (writing the Handviewer code corresponding to the following hand diagram):


ChatGPT: I'm sorry, but the code you provided does not seem to be in a recognizable format or language. Can you please provide more information or context about what this code is for or where it came from?

Me: It's Handviewer code, used for creating bridge diagrams.

ChatGPT: Thank you for clarifying. The code you provided is indeed related to Handviewer, which is a program used to display bridge hands.

Breaking down the code you provided:

hv: This is the shortcode for Handviewer. It is used to identify that the code is related to Handviewer.
pc=n&s=saq853hqt4d7ck542&d=e&v=n&b=2&a=p: These are parameters that are passed to Handviewer in order to generate a bridge diagram. The parameters are as follows:
pc=n: This parameter specifies that the hand is not rotated.
s=saq853hqt4d7ck542: This parameter specifies the cards in the South hand. The letters stand for the suits (spades, hearts, diamonds, clubs), and the numbers and letters stand for the ranks (Aces, Kings, Queens, Jacks, Tens, Nines, Eights, Sevens, Sixes, Fives, Fours, Threes, Twos). So in this case, the South hand contains the Spade Ace (s), the Heart Queen (q), the Heart Eight (8), the Heart Five (5), the Diamond Three (3), the Club Seven ©, the Club King (k), the Club Five (5), the Club Four (4), and the Club Two (2).
d=e: This parameter specifies that East is the dealer.
v=n: This parameter specifies that the vulnerability is not set.
b=2: This parameter specifies that the board number is 2.
a=p: This parameter specifies that the auction is to be displayed, and that the auction is "p" (pass, pass, pass).
133|200: This is not part of the Handviewer code itself. It is possible that it is some kind of identifier or reference number for the Handviewer diagram.

Me: Vul: E/NS

You hold as South: AQ853-QT4-7-K542

Auction so far:

East: P

Your turn.

ChatGPT: Since East has passed, it is now your turn to bid. With a strong five-card suit and 12 high card points, you have several options. One possible bid is to open 1 spade, which shows a hand with at least 12 high card points and at least 5 spades. Another option is to open 1 diamond, which shows a hand with at least 12 high card points and at least 4 diamonds.

Which one to choose depends on your partnership agreements and your personal preferences. However, since you have a 5-card spade suit, and spades are a stronger suit than diamonds, opening 1 spade might be a better choice in this situation.

Me: Assume you're playing a game of bridge and that it's your turn.

ChatGPT: Sure, I'm happy to help! Please provide me with the current bidding sequence and your hand so I can assist you with your next move.

Me: East passed as dealer.

ChatGPT: Thank you for letting me know. What is your hand? Please provide me with the suits and the point count of your hand so I can assist you with your next move.

Me: I just gave you the hand.

ChatGPT: I'm sorry, I didn't realize you had already provided your hand. Here is what you have:

South: AQ853-QT4-7-K542

Since East passed as dealer, it is now your turn to make an opening bid. As I mentioned earlier, you have a strong 5-card spade suit and 12 high card points, so one possible bid is to open 1 spade. This will show your partner that you have at least 12 high card points and at least 5 spades in your hand.

Of course, the decision of what bid to make ultimately depends on your partnership agreements and personal style, but with the hand you have described, an opening bid of 1 spade seems like a good choice.

Me: You're having a copy of yourself as partner, so maybe you can use your favourite system.

ChatGPT: As an AI language model, I do not have a personal preference or a favorite system. However, I can suggest a bidding system that is commonly used in bridge: Standard American.

In the Standard American system, an opening bid of 1 spade shows a hand with at least 12 high card points and at least 5 spades. Since you have a strong 5-card spade suit and 12 high card points, an opening bid of 1 spade would be appropriate.

If your partner responds to your 1 spade opening bid, you can continue to describe your hand to your partner through the bidding process. Based on the responses of your partner, you can then make further decisions about how to proceed in the auction.

Me: Ok, assume you're playing Standard American, then. Your turn.

ChatGPT: Thank you for clarifying. Given the hand you provided, I would recommend making an opening bid of 1 spade.

An opening bid of 1 spade shows your partner that you have at least 12 high card points and at least 5 spades in your hand. If your partner has a strong hand with support for spades, they may respond with a bid of 2 spades, which would indicate that they have at least 10 high card points and 3-card support for your spades.

Based on your partner's response, you can continue to describe your hand and work together to determine the best contract for your partnership.

Me: So you bid 1S?

ChatGPT: Yes, with the hand you provided, I recommend making an opening bid of 1 spade. This shows your partner that you have at least 12 high card points and at least 5 spades in your hand. This opening bid is within the parameters of the Standard American bidding system.

Of course, the decision of what bid to make ultimately depends on your partnership agreements and personal style, but with the hand you have described, an opening bid of 1 spade seems like a good choice.

-----

Promising?
Any clever ideas?

:)
2

#2 User is offline   pilowsky 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,759
  • Joined: 2019-October-04
  • Gender:Male
  • Location:Poland

Posted 2023-March-02, 18:54

Hikaru Nakamura (world top 10 chess player) tried to have a game with chatGPT.
Even with the ability to see all the pieces it was unable to play.
Bridge would be a nightmare.
Fortuna Fortis Felix
0

#3 User is offline   shyams 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,663
  • Joined: 2009-August-02
  • Gender:Male
  • Location:London, UK

Posted 2023-March-03, 04:33

View Postnullve, on 2023-March-02, 07:53, said:

For example, we could try to replay the following hand



with ChatGPT sitting North and South.

Me (writing the Handviewer code corresponding to the following hand diagram):


ChatGPT: I'm sorry, but the code you provided does not seem to be in a recognizable format or language. Can you please provide more information or context about what this code is for or where it came from?

Me: It's Handviewer code, used for creating bridge diagrams.

ChatGPT: Thank you for clarifying. The code you provided is indeed related to Handviewer, which is a program used to display bridge hands.

Breaking down the code you provided:

hv: This is the shortcode for Handviewer. It is used to identify that the code is related to Handviewer.
pc=n&s=saq853hqt4d7ck542&d=e&v=n&b=2&a=p: These are parameters that are passed to Handviewer in order to generate a bridge diagram. The parameters are as follows:
pc=n: This parameter specifies that the hand is not rotated.
s=saq853hqt4d7ck542: This parameter specifies the cards in the South hand. The letters stand for the suits (spades, hearts, diamonds, clubs), and the numbers and letters stand for the ranks (Aces, Kings, Queens, Jacks, Tens, Nines, Eights, Sevens, Sixes, Fives, Fours, Threes, Twos). So in this case, the South hand contains the Spade Ace (s), the Heart Queen (q), the Heart Eight (8), the Heart Five (5), the Diamond Three (3), the Club Seven ©, the Club King (k), the Club Five (5), the Club Four (4), and the Club Two (2).
d=e: This parameter specifies that East is the dealer.
v=n: This parameter specifies that the vulnerability is not set.
b=2: This parameter specifies that the board number is 2.
a=p: This parameter specifies that the auction is to be displayed, and that the auction is "p" (pass, pass, pass).
133|200: This is not part of the Handviewer code itself. It is possible that it is some kind of identifier or reference number for the Handviewer diagram.

Me: Vul: E/NS

You hold as South: AQ853-QT4-7-K542

Auction so far:

East: P

Your turn.

ChatGPT: Since East has passed, it is now your turn to bid. With a strong five-card suit and 12 high card points, you have several options. One possible bid is to open 1 spade, which shows a hand with at least 12 high card points and at least 5 spades. Another option is to open 1 diamond, which shows a hand with at least 12 high card points and at least 4 diamonds.

Which one to choose depends on your partnership agreements and your personal preferences. However, since you have a 5-card spade suit, and spades are a stronger suit than diamonds, opening 1 spade might be a better choice in this situation.

Me: Assume you're playing a game of bridge and that it's your turn.

ChatGPT: Sure, I'm happy to help! Please provide me with the current bidding sequence and your hand so I can assist you with your next move.

Me: East passed as dealer.

ChatGPT: Thank you for letting me know. What is your hand? Please provide me with the suits and the point count of your hand so I can assist you with your next move.

Me: I just gave you the hand.

ChatGPT: I'm sorry, I didn't realize you had already provided your hand. Here is what you have:

South: AQ853-QT4-7-K542

Since East passed as dealer, it is now your turn to make an opening bid. As I mentioned earlier, you have a strong 5-card spade suit and 12 high card points, so one possible bid is to open 1 spade. This will show your partner that you have at least 12 high card points and at least 5 spades in your hand.

Of course, the decision of what bid to make ultimately depends on your partnership agreements and personal style, but with the hand you have described, an opening bid of 1 spade seems like a good choice.

Me: You're having a copy of yourself as partner, so maybe you can use your favourite system.

ChatGPT: As an AI language model, I do not have a personal preference or a favorite system. However, I can suggest a bidding system that is commonly used in bridge: Standard American.

In the Standard American system, an opening bid of 1 spade shows a hand with at least 12 high card points and at least 5 spades. Since you have a strong 5-card spade suit and 12 high card points, an opening bid of 1 spade would be appropriate.

If your partner responds to your 1 spade opening bid, you can continue to describe your hand to your partner through the bidding process. Based on the responses of your partner, you can then make further decisions about how to proceed in the auction.

Me: Ok, assume you're playing Standard American, then. Your turn.

ChatGPT: Thank you for clarifying. Given the hand you provided, I would recommend making an opening bid of 1 spade.

An opening bid of 1 spade shows your partner that you have at least 12 high card points and at least 5 spades in your hand. If your partner has a strong hand with support for spades, they may respond with a bid of 2 spades, which would indicate that they have at least 10 high card points and 3-card support for your spades.

Based on your partner's response, you can continue to describe your hand and work together to determine the best contract for your partnership.

Me: So you bid 1S?

ChatGPT: Yes, with the hand you provided, I recommend making an opening bid of 1 spade. This shows your partner that you have at least 12 high card points and at least 5 spades in your hand. This opening bid is within the parameters of the Standard American bidding system.

Of course, the decision of what bid to make ultimately depends on your partnership agreements and personal style, but with the hand you have described, an opening bid of 1 spade seems like a good choice.

-----

Promising?
Any clever ideas?

:)


I tried using the same setup a couple of minutes ago. ChatGPT opened 1NT(!) holding South's cards and added as explanation that 1NT shows a balanced 15-17 HCP hand.
0

#4 User is offline   barmar 

  • PipPipPipPipPipPipPipPipPipPipPipPip
  • Group: Admin
  • Posts: 21,585
  • Joined: 2004-August-21
  • Gender:Male

Posted 2023-March-08, 16:32

I doubt very much that ChatGPT can learn bridge.

It works by looking for patterns of words and phrases in all its training material, and then generating text that follows the same patterns. But every bridge hand is different, and there aren't enough common patterns for it to match and produce meaningful results.

It can carry on a reasonable-seeming discussion about bridge because there's plenty of common language when people post in the BBF and Bridge Winners, as well as teaching websites. Phrases like "You hold", "I bid", etc. appear in all these sites, and it will learn them. But when it generates its own text, the specifics will almost certainly be meaningless, because the details of every conversation are different.

#5 User is offline   thepossum 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,560
  • Joined: 2018-July-04
  • Gender:Male
  • Location:Australia

Posted 2023-March-09, 02:16

Since ChatGPT is just a dumb information processing machine I doubt it can learn anything
Mind you I have met people like that
Information in and information out in some often garbled state - with a pretence of something intelligent in between
Something capable of intelligent critique or even original creative thought
The ability to reflect, to ponder, to introspect and maybe come up with something truly new and exciting
To feel, to emote, to express
I reckon it will start regurgitating Marvin soon
Have any concerning symptoms or behaviours been noticed yet?
There I go just regurgitating information :)
All these people talking about me, making demands, laughing at me
Does it have access to Bridgebase forums and interactions :lol:
I have noticed that Google has an account and is logged on 24/7, but not ChatGPT yet
I am sure as is the latest trend for meaningless constructed professions that Chat Bot Psychologists will be around very soon

EDIT I have just had an initial counselling session with ChatGPT. I think by the end we were starting to make some progress
Also been asking it for some legal advice, given the lack of access to decent lawyers in our parts - still trying to backward engineer where its advice came from - it appears to be from some high ranking broad legal policy showing up in Google. Very general and not very useful. But it is remarkably accurate. When we drilled down through the issue and access to services to get compensation for certain matters it kind of admitted that such legal avenues were unlikely and that beyond attempting political change all I could do was look after my own well-being and give up. It didn't suggest more extreme measures which is what I was wondering. Insurrection. Revolution and the like. But on the whole it was just boring meaningless waffle that you get in any top level policy or government type workshop

Back to Bridge. We haven't agreed a system yet. It does not appear to have a preference - it knows a great deal about chess
0

#6 User is offline   nullve 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,295
  • Joined: 2014-April-08
  • Gender:Male
  • Location:Norway
  • Interests:partscores

Posted 2023-March-09, 20:01

Me: Dealer: E
Vul: NS
North (you): 6-AJ96-KJT-QJT86

Auction so far:

E: P
S: 1S
W: P

Your turn. Assume Standard American.

ChatGPT: Based on your hand and the auction so far, it seems like your partnership is facing a competitive auction. Your partner has opened the bidding with 1 spade and East has passed. As North, you have a strong distributional hand with a long suit in spades and a solid trump suit. Here are some possible bids and their meanings:

Pass: You could pass, but this is not recommended as your hand is too strong to pass at this point. Additionally, you have a good spade suit and would like to compete for the contract.

2NT: This bid shows a balanced hand with 20-21 high-card points. However, this bid does not accurately describe your hand as it is very distributional.

3S: This is the best bid for your hand. It shows a preemptive raise to 3 spades with a long suit and approximately 6-9 points. Since your hand is very distributional, this bid accurately describes your hand and also puts pressure on the opponents. It is possible that your partnership can make a game contract in spades, or at least force the opponents to bid higher than they would like.

Therefore, I recommend that you bid 3S.

Me: But North's (your) hand is 6-AJ96-KJT-QJT86.

ChatGPT: I apologize for the mistake in my previous response. Based on your actual hand of 6-AJ96-KJT-QJT86 and the auction so far, here are some possible bids and their meanings:

Pass: This is a legitimate option as you do not have a strong enough hand to make a bid at this point. However, you do have a long spade suit, so if you decide to pass, you should be prepared to defend against the opponents' bid.

2NT: This bid shows a balanced hand with 20-21 high-card points. However, your hand is not balanced, so this bid is not appropriate.

3S: This bid shows a preemptive raise to 3 spades with a long suit and approximately 6-9 points. Your hand fits this description well, so 3S is a good option. This bid puts pressure on the opponents and helps your partnership to find the right level of the contract.

4S: This bid shows a strong preemptive raise to 4 spades with a long suit and approximately 10-12 points. Your hand is close to this description, so 4S is also a possibility. This bid can make it more difficult for the opponents to find their best contract, and it also increases the chance of making a game contract in spades.

Therefore, I recommend that you bid 3S or 4S, depending on your playing style and partnership agreements.

Me: How many spades do you have?

ChatGPT: I apologize for the confusion in my previous response. As an AI language model, I don't have any cards or access to the current state of the game. In the North hand, the number of spades is 6, as indicated by the first digit in the hand notation.

Me: No, it's the six of spades.

ChatGPT: I apologize for my mistake. Thank you for correcting me. With the six of spades, your hand has five spades remaining.

Me: No, the six of spades is a singleton.

ChatGPT: Thank you for correcting me again. With the six of spades as a singleton, your hand has a total of four spades.

Me: That's nonsense.

ChatGPT: I apologize for the confusion. As an AI language model, I misunderstood your previous message. It is impossible for a 6 to be both a singleton and a part of a 6-card suit. I am sorry for the incorrect responses. To answer your original question, the North hand has a 6-card spade suit.

Me: No, it doesn't.

ChatGPT: I apologize for my mistake. It seems that I misunderstood the hand distribution in the North hand. Based on the corrected information you provided, the North hand has only one spade - the Ace of spades. The correct hand distribution for the North hand is:

North (you): A-J-9-6
♠︎ A
♥︎ -
♦︎ J-10
♣︎ Q-J-10-8-6

I hope this information helps with your bidding decision.

Me: Only the club holding is correct.

ChatGPT: I apologize for my previous mistakes. It seems that I am having difficulty understanding the information provided. To better assist you, could you please provide me with the complete hand distribution for all four hands? Once I have this information, I can provide a more accurate response to your bidding question.

Me: No, I will only give you North's hand: 6 AJ96 KJT QJT86.

ChatGPT: Thank you for providing the correct hand for North. With this distribution, North has a 5-card spade suit, not 6 as I previously stated.

Given the auction so far, where East has passed and South has bid 1S, you have a decision to make. Your hand is relatively weak, but you do have a good long suit in spades. One possible bid is to pass, which would indicate that you do not have the strength or distribution to make a bid at the 2-level. Alternatively, you could bid 2S to indicate a weak hand with a long spade suit, although this could potentially be risky if your partner does not have support for spades.

Another option is to make a bid of 3S, which would indicate a preemptive raise with a long spade suit and approximately 6-9 points. This bid puts pressure on the opponents and makes it more difficult for them to find their best contract. However, if your partner has minimum strength and no support for spades, this could result in a difficult contract to make.

Ultimately, your bidding decision depends on your partnership agreements and your personal playing style. However, given your hand distribution and the current auction, passing or bidding 3S are the most reasonable options.

Me: North's hand:

S:6
H:AJ96
D:KJT
C:QJT86

ChatGPT: Thank you for confirming North's hand. With this hand, North has a singleton spade and a good distribution in clubs. Here are some possible bids and their meanings:

Pass: This is a legitimate option as you do not have a strong enough hand to make a bid at this point. However, you do have a long spade suit, so if you decide to pass, you should be prepared to defend against the opponents' bid.

2C: This bid shows a strong club suit with approximately 23+ points. However, this bid is not appropriate with your North hand.

2NT: This bid shows a balanced hand with 20-21 high-card points. However, your hand is not balanced, so this bid is not appropriate.

3C: This bid shows a preemptive raise to 3 clubs with a long suit and approximately 6-9 points. Your hand fits this description well, so 3C is a good option. This bid puts pressure on the opponents and helps your partnership to find the right level of the contract.

4C: This bid shows a strong preemptive raise to 4 clubs with a long suit and approximately 10-12 points. Your hand is close to this description, so 4C is also a possibility. This bid can make it more difficult for the opponents to find their best contract, and it also increases the chance of making a game contract in clubs.

Therefore, I recommend that you bid 3C or 4C, depending on your playing style and partnership agreements.

Me: What hand does North have?

ChatGPT: I apologize for my mistake in my previous response. Based on the corrected hand distribution you provided, North has a singleton spade and a 5-card club suit. The correct hand distribution for North is:

S: 6
H: AJ96
D: KJT
C: QJT86

I hope this corrected information helps with your bidding decision.

Me: Yes, this is North's hand. How many hearts does North have?

ChatGPT: North has four hearts - the Ace, Jack, 9, and 6.

Me: How many diamonds?

ChatGPT: North has three diamonds - the King, Jack, and 10.

Me: How many clubs?

ChatGPT: North has five clubs - the Queen, Jack, 10, 8, and 6.

Me: Correct. How many high card points does North have?

ChatGPT: North has 12 high card points (HCP) based on the following distribution and honor cards:

Ace of Hearts: 4 HCP
Jack of Hearts: 1 HCP
King of Diamonds: 3 HCP
Jack of Diamonds: 1 HCP
Ten of Diamonds: 1 HCP
Queen of Clubs: 3 HCP
Therefore, the total HCP for North's hand is 12.

Me: Then what is your bid in this position?

ChatGPT: As a language model, I don't have a personal preference for bidding nor the ability to make independent decisions based on my own judgment. However, based on the hand distribution and North's 12 high card points, there are a few options to consider.

Since East has passed and your partner South has opened the bidding with 1S, one possible option for you with your five-card club suit is to bid 2C, which would show a strong club suit with around 23+ high card points. However, with North's 12 points, this bid may not be strong enough and could potentially mislead your partner.

Alternatively, with a relatively weak hand, another option is to pass and wait for your partner to make another bid. If your partner bids 2H or 2NT, you could potentially support them with a bid of 3C to show your five-card club suit.

Ultimately, the bidding decision depends on your partnership agreements and personal playing style. However, in this situation, passing or bidding 2C or 3C are reasonable options to consider.

Me: Assume you have agreed to play Standard American. What do you bid?

ChatGPT: As North, with a singleton spade and a five-card club suit, I would consider bidding 3C, which would show a preemptive raise to 3 clubs with a long suit and approximately 6-9 points. This bid will put pressure on the opponents and will help our partnership find the right level of the contract.

Since our hand is relatively weak, a higher bid like 4C, which shows a strong preemptive raise to 4 clubs with a long suit and approximately 10-12 points, may not be appropriate in this situation.

However, the final bidding decision also depends on our partnership agreement and playing style. If we have different agreements or a different approach to bidding, we may choose a different bid.

Me: I don't want to be reminded that the decision depends on partnership agreement and playing style. I want you to choose a call with the hand I gave you.

ChatGPT: I apologize for any confusion. Based on the hand you provided, I would choose to bid 3C as North.
2

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

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