Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

wgzesg
Copy link

@wgzesg wgzesg commented Jul 25, 2022

Support bet with any amount. Set min raise to double of previous raise

'--cuda',
type=str,
default='',
default='0',
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make '' as default since some users may not have GPU

# random_agent = RandomAgent(num_actions=env.num_actions)

env.set_agents([human_agent, human_agent2])
env.set_agents([human_agent, human_agent2, human_agent3, human_agent4])
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We you make it 4 players instead of 2?

for player_id in range(self.num_players):
state = self.get_state(player_id)
trajectories[player_id].append(state)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe we don't want to print trajectories in this method, which will affect all the games.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure. Shld Set this to WIP! WIll resolve the status once the feature is done

return self.round.get_nolimit_legal_actions(players=self.players)

def step(self, action):
def step(self, action_tp):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the motivation of using action_tp? What would the legal actions be with action_tp?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

action_tp (or action_tuple) [Action, amt: int]
legal actions will only contain FOLD, RAISE, CALL,
In the case of raise, action_tp[1] indicates the amt to raise; In other cases, action_tp[1] is not used

@wgzesg wgzesg changed the title Support bet with any amount. Set min raise to double of previous raise [WIP] Support bet with any amount. Set min raise to double of previous raise Jul 26, 2022
@daochenzha
Copy link
Member

@wgzesg You mentioned, "WIll resolve the status once the feature is done". Just check if this feature is done. Sorry, I lose track of this PR>

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

Successfully merging this pull request may close these issues.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.