Two Plus Two Newer Archives  

Go Back   Two Plus Two Newer Archives > Internet Gambling > Software
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 08-28-2007, 06:14 PM
appel appel is offline
Junior Member
 
Join Date: Aug 2007
Posts: 1
Default Poker hand evaluation

Hello,

I'm programming a texas hold'em game in my free time, using Java.

I've been playing for a week or so on PokerStars.com, and really like the game. (I'm new to it) I've studied everything I believe I need to know, but one thing eludes me.


My main problems I need to solve are the following:

1. Since the player has 7 cards, I need to figure out what combination of 5 cards out of 7 cards makes up the best possible hand.

2. When I've figured out 1. , then I want to compare the hands of each player (who hasn't folded), to figure out the winner.

Also:
3. Tell the player what kind of a hand he has, some don't know the rules and I want to print somewhere on the screen "You have a pair of aces", or "You have a flush, king high.". So I need to create a textual description of the hand, very similar as in the PokerStars.com program!


At first I thought this wasn't going to be a big deal, but after Googling for one night I discovered that this is actually a big topic.

I've found some applications, like
pokersource, but it's non usable for me for many reasons. There are also tons of calculators to calculate the odds, but I'm not interested in that.

Any ideas?
Reply With Quote
  #2  
Old 08-28-2007, 07:46 PM
advis0r advis0r is offline
Member
 
Join Date: Apr 2007
Location: Southern Germany
Posts: 99
Default Re: Poker hand evaluation

http://www.brecware.com/Software/software.html

there's some java program that does evaluation of pokerhands. sourcecode is included in the jar.
Reply With Quote
  #3  
Old 08-28-2007, 09:00 PM
Adrian20XX Adrian20XX is offline
Senior Member
 
Join Date: Dec 2005
Posts: 172
Default Re: Poker hand evaluation

For the 7 hands evaluator you have a huge thread in here:
http://forumserver.twoplustwo.com/showth...page=0&vc=1

I think that someone ported Ray's code to Java also.

Regards ...
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.