Issue in poker
I have almost completed a Texas Hold 'Em poker game, but have on issue that I'm struggling with. I have created an opponent model which will return a decision on how to play a hand. This works fine, but where i am struggling is when it comes to managing the decisions of each player. For example if two players were to bet and then call, but then the next player raised, it would have to loop round to a new instance of a decision for the previous two players. The approach i have tried was to create a betting method which makes a count each time a hand is called, and the betting comes to an end when the call count is equal to the remaining players in the hand minus 1. This means that if after prompting a decision from each player, the method calls upon itself and will prompt for decisions once again from players that are still in, until the call count is to the required value. However i have not had much success in doing it this way and was wondering if anyone has done anything similar that may point me in a suitable direction for how to solve this?

