rlcard icon indicating copy to clipboard operation
rlcard copied to clipboard

About Dou Dizhu game state

Open HJia42 opened this issue 2 years ago • 1 comments

Hi I was reading up the RLCard page about Dou Dizhu and it mentioned an action state of 27472 or just 309 by combining reduncencies. I was wondering where self.state_shape = [[790], [901], [901]] came from?

HJia42 avatar Apr 18 '23 01:04 HJia42

@HJia42 790, 901, 901 are the state shapes, which means the landlord has 790 features, and the other two players have 901, 901 features. These features are the result of concatenating many card planes.

For example, for the landlord, the features are defined here https://github.com/datamllab/rlcard/blob/master/rlcard/envs/doudizhu.py#L50-L57

In total, there are 790 features.

daochenzha avatar Apr 29 '23 05:04 daochenzha