当你确定你的分类方法运转正常了,下一步就是要估计各个牌型的出现概率。
When you are convinced that your classification methods are working, the next step is to estimate the probabilities of the various hands.
在PokerHand . py中写一个函数来对一副牌进行洗牌,分成多个牌型,对各个牌型进行分类,然后统计不同类型出现的次数。
Write a function in PokerHand. py that shuffles a deck of CARDS, divides it into hands, classifies the hands, and counts the number of times various classifications appear.
应用推荐