title: Teaching the computer to play texas Hold'em poker
body: <p>I'm a beginner in Java and programming but I'm already creating a Texas Hold'em Poker game as a "practice and learn" project.</p>
  
  <p>I know the rules of the game, but I'm not sure how to include bots or computer player that can decide when to go in and when to quit, how much to bet (including All-in bet),and if possible even to bluff from time to time.</p>
  
  <p>At this point my question is:
  <strong>Should I take an effort to "explain with if's and then's, when to do that or is there an algorithm that allows the bot player to do that?</strong>  </p>
  
  <p>If it exists, <strong>would that algorithm be specific for poker or is possible to reuse it to any game to allow the computer to "learn" the rules described in the programming, for different rules or even different games (so it applies to chess or monopoly, etc)?</strong></p>