Beispiel #1
0
 public override void action(BJLoopContext context)
 {
     context.GameState.Deck.shuffle();
     context.BJLoop = new BJPlayerBet();
     //two cards lul
     BJActions.deal(context);
     BJActions.deal(context);
 }
Beispiel #2
0
        public static void hitstand(BJLoopContext context)
        {
            int player_hand = BJLogicHelper.cards_value(context.GameState.Player.Hand);

            if (context.BJLoop.GetType() == typeof(BJPlayerSplitTurn))
            {
                player_hand = BJLogicHelper.cards_value(context.GameState.Player.Split_Hand);
            }

            if (player_hand < 17)
            {
                BJActions.hit(context);
            }
            else
            {
                BJActions.stand(context);
            }
        }
Beispiel #3
0
 public static void split(BJLoopContext context)
 {
     BJActions.split(context);
 }
Beispiel #4
0
 public static void bet(BJLoopContext context)
 {
     BJActions.bet(context);
 }