Skip to content

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

@ahmed-hararaa

Description

@ahmed-hararaa

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).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions