Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.

logic monkey

Simple poker algorithms?

This topic is 5524 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I am looking for code that can both rank and compare two or more poker hands. Example: A 7-card stud type game with two or more players. I want to code something that does the following: -Look at a given players seven cards -Determine which 5 cards produce the highest ranking hand -Evaluate the other players in the same fashion -Compare each players hand ranking and determine which player has the best hand Yep, I realize this is probably a truckload of code and there probably isn''t a truly simple way to do it. I was just wondering if anyone knows of any sites that would provide me with some good info, in code or even in text, that would help me out. All my web searches lead me to shuffle algorithms and poker AI. I''ve kind of come up with a way to do it, but theres got to be a less convoluted way to do it. So if anyone has coded something like this or can point me to more solid information, I would appreciate it to no end. Thanks

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!