title: Implementing Betting for a Poker Game
body: <p>I am currently writing a Texas Hold'Em style Poker game that I would like both humans and computers alike to be able to play. However, I am hung up on how to implement the betting rounds. Currently I have a <code>PokerGame</code> class which consists of the community cards, the size of the pot, a <code>List</code> of <code>PokerPlayer</code>s and a few other things. <strong>How would I implement a method that "asks" each player (I can't take input because it might just be a computer) whether they want to call, raise, etc?</strong> Originally I though I might just implement a server or possibly multithreading, but that seems way to complex. Currently my only though is setting up some sort of input stream between the game and each player in the game. </p>