-
Notifications
You must be signed in to change notification settings - Fork 654
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
Total number of states #101
Comments
@lssr Calculating this number is very challenging. An estimation is here https://github.com/datamllab/rlcard#available-environments |
Do you have the number for gin rummy? |
@justinkterry For the initial state: 52 choose 11 = 60403728840 For the second state: (52 choose 10) * 42 = 664441017240 |
@daochenzha can you add this to your table? |
@billh0420 I feel like it is not that easy. There are two aspects we may need to consider. 1. the cards on the board, since the cards on the board could be used to predict future cards and guess the hand cards of the opponent. 2. the historical actions taken by the players could be also informative. Thus, I guess we need to consider all these situations when calculating the number of states right? |
Any more thoughts here? |
@daochenzha said "since the cards on the board could be used to predict future cards" @daochenzha said " and guess the hand cards of the opponent." @justinkterry asked "Any more thoughts here?" Ignoring picking up discards, the discard pile can have up to 30 cards in a specific order.
which is about 2e+46. Multiplying by the number of ways of having 10 or 11 cards, I get:
I hope I didn't make some arithmetic error. Thus, there are around 1.4e+58 states for Gin Rummy. |
The above seems wrong. When the stock pile has 2 cards and the discard pile has 30 cards is the critical situation. The number of cases for the discard pile is 52 * 51 * ... * 23 = 7e+46. The player can have 10 cards from the remaining 22 cards: 22 chose 10 = 646646. Multiplying these two numbers, I get:
Thus, there are around 4.6e+52 states for Gin Rummy. |
Thanks a ton! @daochenzha does that seem right to you? |
@billh0420 @justinkterry Thanks a lot! The calculation looks reasonable to me. I will put it into README later. We have also 2 other dimensions. One is action size. The other one is the average size of each state (in one state, there are many possibilities of other player's hands). This metric somehow measures the "imperfections", or how much information is given. Do you happen to have any comments on these numbers? |
@daochenzha this should be closable now? |
What is the total number of states for each game?
The text was updated successfully, but these errors were encountered: