Skip to content

Commit

Permalink
Update perfect information
Browse files Browse the repository at this point in the history
  • Loading branch information
daochenzha committed May 11, 2020
1 parent 9ce3ff3 commit f15d210
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rlcard/envs/leducholdem.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def get_perfect_information(self):
state['chips'] = [self.game.players[i].in_chips for i in range(self.player_num)]
state['public_card'] = self.game.public_card.get_index() if self.game.public_card else None
state['hand_cards'] = [self.game.players[i].hand.get_index() for i in range(self.player_num)]
state['current_round'] = self.game.round_counter
state['current_player'] = self.game.game_pointer
state['legal_actions'] = self.game.get_legal_actions()
return state

0 comments on commit f15d210

Please sign in to comment.