![]() |
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.
|
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.
|
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. |
| All times are GMT -5. The time now is 11:21 PM. |
Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC