Skip to content

wilkyconsultants/poker

Repository files navigation

poker

Poker-texas Holdem simulation

Run this simulation to get 23 hands from the same deck and 5 community cards

Future enhancements planned:

  • Change to table of 10 hands and deal around a table showing Dealer, SB, BB
  • Have computer do the bids based on strength of hand pre-flop, flop, turn and river
  • maintain chip counts of players
  • simulate full tournament

Example run: ./deal_hands.py

--------- Community cards: ['Q♣', '9♣', '5♢', 'J♠', 'J♡'] ----------

#01 Hole cards: ['4♣', '2♣'] Hand: ['J♠', 'J♡', 'Q♣', '9♣', '5♢'] 1 One Pair

#02 Hole cards: ['Q♡', '9♢'] Hand: ['Q♡', 'Q♣', 'J♠', 'J♡', '5♢'] 2 Two Pair

#03 Hole cards: ['8♠', '7♡'] Hand: ['J♠', 'J♡', 'Q♣', '9♣', '8♠'] 1 One Pair

#04 Hole cards: ['T♠', '7♣'] Hand: ['J♠', 'J♡', 'Q♣', 'T♠', '9♣'] 1 One Pair

#05 Hole cards: ['K♢', '8♡'] Hand: ['J♠', 'J♡', 'K♢', 'Q♣', '9♣'] 1 One Pair

#06 Hole cards: ['3♠', 'J♣'] Hand: ['J♣', 'J♠', 'J♡', 'Q♣', '9♣'] 3 Three of a Kind

#07 Hole cards: ['7♠', '2♡'] Hand: ['J♠', 'J♡', 'Q♣', '9♣', '7♠'] 1 One Pair

#08 Hole cards: ['A♢', 'K♡'] Hand: ['J♠', 'J♡', 'A♢', 'K♡', 'Q♣'] 1 One Pair

#09 Hole cards: ['T♢', '3♣'] Hand: ['J♠', 'J♡', 'Q♣', 'T♢', '9♣'] 1 One Pair

#10 Hole cards: ['3♢', 'T♣'] Hand: ['J♠', 'J♡', 'Q♣', 'T♣', '9♣'] 1 One Pair

#11 Hole cards: ['5♣', 'Q♠'] Hand: ['Q♠', 'Q♣', 'J♠', 'J♡', '9♣'] 2 Two Pair

#12 Hole cards: ['2♠', 'K♣'] Hand: ['J♠', 'J♡', 'K♣', 'Q♣', '9♣'] 1 One Pair

#13 Hole cards: ['4♡', 'A♣'] Hand: ['J♠', 'J♡', 'A♣', 'Q♣', '9♣'] 1 One Pair

#14 Hole cards: ['J♢', '8♢'] Hand: ['J♢', 'J♠', 'J♡', 'Q♣', '9♣'] 3 Three of a Kind

#15 Hole cards: ['Q♢', '6♣'] Hand: ['Q♢', 'Q♣', 'J♠', 'J♡', '9♣'] 2 Two Pair

#16 Hole cards: ['T♡', '4♢'] Hand: ['J♠', 'J♡', 'Q♣', 'T♡', '9♣'] 1 One Pair

#17 Hole cards: ['A♠', '2♢'] Hand: ['J♠', 'J♡', 'A♠', 'Q♣', '9♣'] 1 One Pair

#18 Hole cards: ['8♣', 'A♡'] Hand: ['J♠', 'J♡', 'A♡', 'Q♣', '9♣'] 1 One Pair

#19 Hole cards: ['6♢', '9♡'] Hand: ['J♠', 'J♡', '9♡', '9♣', 'Q♣'] 2 Two Pair

#20 Hole cards: ['4♠', 'K♠'] Hand: ['J♠', 'J♡', 'K♠', 'Q♣', '9♣'] 1 One Pair

#21 Hole cards: ['6♡', '9♠'] Hand: ['J♠', 'J♡', '9♠', '9♣', 'Q♣'] 2 Two Pair

#22 Hole cards: ['7♢', '6♠'] Hand: ['J♠', 'J♡', 'Q♣', '9♣', '7♢'] 1 One Pair

#23 Hole cards: ['3♡', '5♡'] Hand: ['J♠', 'J♡', '5♡', '5♢', 'Q♣'] 2 Two Pair

About

Poker simulation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published