|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
Use simulation to determine what the odds are of winning a four-player game of Texas Hold’Em poker if you have at least one Ace.
• Make a list that has all 52 cards of a standard playing deck.
• Remove one Ace (you can choose which one) and add it to the cards of
player 1.
• Shuffle the remaining 51 cards. Hint: Take a look at the function random.shuffle
after you have imported random.
• Add the first card to the cards of player 1.
• Add two cards each to the cards of players 2, 3, and 4.
• Add five cards to the community cards.
• Determine whether player 1 has won using the function holdem.
• Repeat this process many times (the more the better, but at least 10,000 times).
多谢了! |
|