![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Oct 2007
Posts: 2
Rep Power: 0
![]() |
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.
|
|
|
|
|
|
#2 |
|
Hobbyist Programmer
Join Date: Oct 2006
Posts: 188
Rep Power: 2
![]() |
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.
|
|
|
|
|
|
#3 |
|
Newbie
Join Date: Jan 2008
Posts: 9
Rep Power: 0
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |