Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 24th, 2008, 9:36 PM   #1
juggernot
Newbie
 
Join Date: Oct 2007
Posts: 6
Rep Power: 0 juggernot is on a distinguished road
Poker Probability Calculator - Bruteforce Algorithm

I'm trying to create a program which can calculate the chance to win and the percent to gain in a game of poker. The user input will include # of players, the pocket cards, the community cards, the total pot, the money contributed by player. The program will allow the user to input different amounts of data and calculate the ouput accordingly. So the program can calculate the chance to win at any point throughout the hand. My problem is when it comes to the bruteforce algorithm. I can't think of a way to come up with every possibility, because no player can have the same two cards. I'm pretty new to Java, I'm using JOptionPane for input and System.out.println for output.
juggernot is offline   Reply With Quote
Old Jan 25th, 2008, 2:24 AM   #2
Fall Back Son
Professional Programmer
 
Join Date: Oct 2006
Posts: 257
Rep Power: 2 Fall Back Son is on a distinguished road
Re: Poker Probability Calculator - Bruteforce Algorithm

The problem you have is with probability, not programming. . I think the topic you have to look into is combinations/combinatorics. I was always terrible at it myself, but that ought to help you. There is definitely a method to calculating what you're having trouble with.
Fall Back Son is offline   Reply With Quote
Old Jan 29th, 2008, 8:34 PM   #3
TheAberrant
Newbie
 
Join Date: Jan 2008
Posts: 10
Rep Power: 0 TheAberrant is on a distinguished road
Re: Poker Probability Calculator - Bruteforce Algorithm

I think this link will help... http://www.tightpoker.com/poker_odds.html

Goes through what Poker odds are, and how to calculate Pot Odds, etc. I use http://www.pokerstove.com/ as well for calculating odds...they might have some documentation that will help you out.
TheAberrant is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
data tree for A* algorithm cwl157 Java 0 Sep 17th, 2007 3:48 PM
prim's algorithm cwl157 C++ 7 Apr 18th, 2006 8:45 PM
algorithm of fast exponentiation MicRo C++ 1 Mar 12th, 2006 5:29 PM
SpcFileWipe algorithm in Secure Programming Cookbook not working c0ldshadow C++ 1 Aug 7th, 2005 7:40 PM
rsa encrption decrption algorithm justdoit C 2 May 4th, 2005 9:16 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:09 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC