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); } }
public void StartHand(IStartHandContext context) { this.player.StartHand(context); foreach (var item in this.indicators) { item.StartHandExtract(context); } }
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); }
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); }
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++; }
public virtual void StartHand(IStartHandContext context) { this.Player.StartHand(context); }
public override void StartHand(IStartHandContext context) { base.StartHand(context); this.pocket = new CardAdapter(new[] { context.FirstCard, context.SecondCard }); }
public virtual void StartHand(IStartHandContext context) { this.FirstCard = context.FirstCard; this.SecondCard = context.SecondCard; }
public override void StartGameExtract(IStartHandContext context) { this.CurrentPosition = null; }
public override void StartHand(IStartHandContext context) { base.StartHand(context); this.startHandMoney = context.MoneyLeft; }