コード例 #1
0
ファイル: AllInBot.cs プロジェクト: gmcdonald73/holdem-bots
        protected override PokerAction PerformAction(int betSize, int callAmount, int minRaise, int potSize)
        {
            switch (_rnd.Next(0, 5))
            {
            case 0:
                return(PokerAction.Call());

            case 1:
                return(PokerAction.Check());

            case 2:
                return(PokerAction.BetOrRaise(minRaise));

            case 3:
                return(PokerAction.Fold());

            case 4:
                return(PokerAction.Show());

            default:
                throw new NotImplementedException();
            }
        }