JansthcirlU / Blackjack

0 stars 0 forks source link

Group equivalent states together #2

Open JansthcirlU opened 3 months ago

JansthcirlU commented 3 months ago

Game state encapsulates player hands info, dealer hand info and remaining shoe info. For initial state specifically, the current code generates 52P2 * 50P2 initial states (i.e. all permutations of two player cards and two dealer cards), but if the code grouped equivalent states (i.e. all combinations), the number of initial states would be 52C2 * 50C2.

JansthcirlU commented 3 months ago

Since #6 was not a viable solution, use the suggested alternative strategy to group equivalent states together inside the blackjack graph.