示例#1
0
        public static bool ProposedRaiseBelow(this GameState gameState, decimal percent)
        {
            var stack       = (decimal)gameState.GetOurPlayer().Stack;
            var proposedBet = gameState.GetProposedRaise();

            return(proposedBet / stack <= percent);
        }
示例#2
0
 public static bool DidBetHigherThanBigBlind(this GameState gameState)
 {
     return(gameState.GetOurPlayer().Bet > gameState.Small_Blind * 2);
 }
示例#3
0
 public static int GetProposedRaise(this GameState gameState)
 {
     return(gameState.Current_Buy_In - gameState.GetOurPlayer().Bet);
 }
示例#4
0
 public static int GetMinimumRaiseBet(this GameState gameState)
 {
     return(gameState.Current_Buy_In - gameState.GetOurPlayer().Bet + gameState.Minimum_Raise);
 }