Java

Moderators: zibadian
Number of threads: 7818
Number of posts: 18218

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Help! Modelling Poker in Java Posted by SleepMonster on 29 Jun 2005 at 4:46 AM
Hello People, I am currently trying to write a Poker betting aid for use with online poker. Basically I want a program to calculate percentage odds based on the cards i'm dealt, and as the hand progresses, which makes use of a GUI. So far i can see the need for classes that model; A card (suit and rank etc), A deck of cards, a hand (pocket cards, flop, turn, river), a player, I will also need my GUI. Where do I specify what constitutes a potential winning hand (e.g. isPair(Hand h){} from pair through to is StraigtFlush(Hand h){} straight flush etc), and also where would I put my algorithm that takes in the current cards in the hand and calculates the percentages. Would that all occur in a poker class? or am I looking at a seperate class to do hand evaluation? Or have I overseen far more classes than I have mentioned above?

Any help/advice would be much appreciated.




 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.