Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Bid Selection Always Returning 7NT in Bridge Game #324

Open
ahmed-hararaa opened this issue Nov 8, 2024 · 0 comments
Open

Issue with Bid Selection Always Returning 7NT in Bridge Game #324

ahmed-hararaa opened this issue Nov 8, 2024 · 0 comments

Comments

@ahmed-hararaa
Copy link

I am using the Bridge environment in RLCard and made a small modification to the get_payoffs method to print the selected bid at the end of the game. The code modification I made is as follows:

def get_payoffs(self):
    ''' Get the payoffs of players.

    Returns:
        (list): A list of payoffs for each player.
    '''
    round = self.game.round
    bid = self.game.round.contract_bid_move
    print(bid)

    return self.bridgePayoffDelegate.get_payoffs(game=self.game)

However, I have noticed that the bid selection is almost always the same, specifically 7NT (No Trump), regardless of the situation. Below is a sample of the output printed by my code:

E bids 7NT
E bids 7NT
N bids 7NT
N bids 7NT
N bids 7NT
S bids 7NT
N bids 7NT
E bids 7NT
E bids 7NT
W bids 7NT
N bids 7NT
N bids 7NT
W bids 7NT
S bids 7H
S bids 7NT
E bids 7NT
N bids 7NT
N bids 7NT
E bids 7NT

As you can see, the bid is almost always 7NT (No Trump), with only a few exceptions (like 7H). This seems like an issue since bids should vary depending on the game state, the hands of the players, and other factors.

Steps to Reproduce:

  1. Use the RLCard Bridge environment.
  2. Modify the get_payoffs method to print the selected bid
def get_payoffs(self):
    round = self.game.round
    bid = self.game.round.contract_bid_move
    print(bid)
    return self.bridgePayoffDelegate.get_payoffs(game=self.game)
  1. Run several games and observe the output of the bid.

Expected Behavior:
The bid should vary based on the game state, and not always default to 7NT (No Trump). The agents should be making bids based on their hand strength, position, and other factors relevant to the Bridge game.

Actual Behavior:
The bid is almost always 7NT (No Trump), with very few instances of other bids like 7H (Hearts).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant