예제 #1
0
        public override void StartHandExtract(IStartHandContext context)
        {
            base.StartHandExtract(context);

            this.moneyInTheBeginningOfTheHand = context.MoneyLeft;
            this.smallBlind = context.SmallBlind;
        }
        public override void StartHandExtract(IStartHandContext context)
        {
            base.StartHandExtract(context);

            if (this.IndicatorByStreets.ContainsKey(GameRoundType.PreFlop))
            {
                this.IndicatorByStreets[GameRoundType.PreFlop].StartHandExtract(context);
            }
        }
예제 #3
0
        public void StartHand(IStartHandContext context)
        {
            this.player.StartHand(context);

            foreach (var item in this.indicators)
            {
                item.StartHandExtract(context);
            }
        }
예제 #4
0
        public override void StartHand(IStartHandContext context)
        {
            this.Cards.Clear();
            this.Cards.Add(context.FirstCard);
            this.Cards.Add(context.SecondCard);

            this.PlayerMoney.NewHand();

            base.StartHand(context);
        }
        public override void StartHandExtract(IStartHandContext context)
        {
            base.StartHandExtract(context);

            this.numberOfPlayers = context.ActionPriority.Count;
            var actionPriority = context.ActionPriority.TakeWhile(p => p != this.playerName).Count();

            this.CurrentPosition = availableSeatNames[this.numberOfPlayers - 2][actionPriority];

            this.IndicatorByPositions[this.CurrentPosition.Value].StartHandExtract(context);
        }
        public override void StartHand(IStartHandContext context)
        {
            this.UpdateCommonRow(0);
            var dealerSymbol = context.FirstPlayerName == this.Player.Name ? "D" : " ";

            ConsoleHelper.WriteOnConsole(this.row + 1, 1, dealerSymbol, ConsoleColor.Green);
            ConsoleHelper.WriteOnConsole(this.row + 3, 2, "                            ");

            ConsoleHelper.WriteOnConsole(this.row + 1, 2, context.MoneyLeft.ToString());
            this.DrawSingleCard(this.row + 1, 10, context.FirstCard);
            this.DrawSingleCard(this.row + 1, 14, context.SecondCard);

            base.StartHand(context);
        }
예제 #7
0
        public override void StartHand(IStartHandContext context)
        {
            this.UpdateCommonRow(0);
            var dealerSymbol = context.FirstPlayerName == this.Player.Name ? "Dealer" : "      ";

            ConsoleConfig.WriteOnConsole(this.row + 1, 1, dealerSymbol, ConsoleColor.Green);

            ConsoleConfig.WriteOnConsole(this.row + 11, 2, "Money: " + context.MoneyLeft.ToString());
            this.DrawSingleCard(this.row + 9, width / 2 - 6, context.FirstCard);
            this.DrawSingleCard(this.row + 9, width / 2 - 1, context.SecondCard);

            DrawSingleHideCard(this.row + 4, width / 2 - 4);
            DrawSingleHideCard(this.row + 4, width / 2 - 9);
            DrawSingleHideCard(this.row + 4, width / 2 + 1);
            DrawSingleHideCard(this.row + 4, width / 2 - 14);
            DrawSingleHideCard(this.row + 4, width / 2 + 6);

            DrawSingleHideCard(this.row + 4, width / 2 + 27);
            DrawSingleHideCard(this.row + 4, width / 2 + 22);

            base.StartHand(context);
        }
예제 #8
0
파일: APlayer.cs 프로젝트: aneopsy/Powker
 public virtual void StartHand(IStartHandContext context)
 {
     this.HandCard.Add(context.FirstCard);
     this.HandCard.Add(context.SecondCard);
 }
 public virtual void EndGameExtract(IStartHandContext context)
 {
 }
 public virtual void StartHandExtract(IStartHandContext context)
 {
     this.Hands++;
 }
예제 #11
0
 public virtual void StartHand(IStartHandContext context)
 {
     this.Player.StartHand(context);
 }
예제 #12
0
        public override void StartHand(IStartHandContext context)
        {
            base.StartHand(context);

            this.pocket = new CardAdapter(new[] { context.FirstCard, context.SecondCard });
        }
예제 #13
0
 public virtual void StartHand(IStartHandContext context)
 {
     this.FirstCard  = context.FirstCard;
     this.SecondCard = context.SecondCard;
 }
 public override void StartGameExtract(IStartHandContext context)
 {
     this.CurrentPosition = null;
 }
예제 #15
0
        public override void StartHand(IStartHandContext context)
        {
            base.StartHand(context);

            this.startHandMoney = context.MoneyLeft;
        }