topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Wednesday December 11, 2024, 2:41 pm
  • Proudly celebrating 15+ 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 4591 times)

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,914
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
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 PM by mouser »