[AS3] Poker Game Simulation Problem(s)

Commenta 7th November , 2009
Hey, so I’ve decided to undertake a project for fun and to add to my portfolio. I’m wanting to create an app that simulates a Texas Holdem Poker game between two people (me and a friend) and works out the probability of each person to win after each turn.

Here are the kilometrestones:

1. Do up a UI and make the simulation. (complete)
2. Write code to determine who has won the current game.
3. Write code to determine the probability of each player to win the game after each turn.

I’m stuck on number 2. I just have no idea what the best way to determine who has won the game is. There are 2,598,960 different combinations in Texas Holdem and I can’t have an if statement for each.

Any ideas? This is more challenging than I thought it would be. Also, I’ve uploaded what I have so far in case people want to check it out. Thanks in advanced!

By the way, it’s nice to see a few familiar names still around. ;)

Attached Files
File Type: zip poker.zip (143.3 KB)

Original post by aaron_da_killa

Lascia un Commento