Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • October 27, 2016, 05:38:10 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Fun idea for a coding challenge: Texas Hold'Em Poker Hand Analyzer  (Read 249 times)


  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 36,339
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Fun idea for a coding challenge: Texas Hold'Em Poker Hand Analyzer
« on: September 15, 2016, 05:37:31 PM »
For anyone interested in a fun coding and math/probability challenge, I thought of one the other day.  And with the Programming School area offline, I'll just post it here.

Texas Hold'Em Poker Hand Analyzer

Allow a user to provide the hands for any number of players, and some (optional) shared hand cards.

The program should then calculate the odds of each hand winning (note there are cases where there could be a tie) a game of Texas Hold'Em Poker.

Bonus points for making it easy to adjust hands/common cards.

Bonus points if your program can let you specify certain players cards as unknown.  For example it would be nice to say player 1 has "Ace and four of hearts" and there is one other player with 2 unknown cards.  What are my odds of winning?

This is exactly the kind of program they use on poker shows to show the likelyhood of each player winning as they play.  It's a great way to learn about probabilities.
« Last Edit: September 15, 2016, 07:46:09 PM by mouser »