Original Post
Hi. I'm doing a poker game where I have 5 computer players and a human player playing against each other. When it is the human players turn to act I first enable user controls and then I would like to wait for the user to make a choice (by pressing a button - "bet", "call" etc.) and only then should the next computer player be allowed to play. I don't want to add an "infinite" loop that exits when the user has made a choice. Also, I don't want to add a dialog that receives focus because I want it to be like real poker clients and also because I don't think that would be a good solution. The gameflow is like this: playTurn(); And then within playTurn each player is asked to take action like so: actionTaken = player.bet(gameInformation); With only computer players (class ComputerPlayer) there is no problem because they know exactly what to do and return immediately but when a human player is asked to take action (class HumanPlayer) I don't really know what to do. I hope I have explained myself well enough. Any help is appreciated.