View Single Post
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