public override void EndHand(IEndHandContext context) { base.EndHand(context); if (this.takesPartInTheCurrentHand) { this.HandsPlayed++; this.Profit += context.MoneyLeft - this.startHandMoney; if (context.MoneyLeft > this.startHandMoney) { // won hand this.wonMoney += context.MoneyLeft - this.startHandMoney; } else if (context.MoneyLeft == this.startHandMoney) { // 1. The player does not sit in the blinds and folds his cards pre-flop // 2. The player shared the pot at the showdown and he wins exactly as much as he invested } else { // lost hand this.lostMoney += this.startHandMoney - context.MoneyLeft; } } this.takesPartInTheCurrentHand = false; }
public override void EndHandExtract(IEndHandContext context) { if (this.IndicatorByStreets.ContainsKey(context.LastGameRoundType)) { this.IndicatorByStreets[context.LastGameRoundType].EndHandExtract(context); } }
public void EndHand(IEndHandContext context) { this.player.EndHand(context); foreach (var item in this.indicators) { item.EndHandExtract(context); } }
public override void EndHandExtract(IEndHandContext context) { if (this.didThePlayerSeeTheFlop && context.ShowdownCards.Count > 0) { this.TotalTimesWentToShowdown += context.ShowdownCards.ContainsKey(this.playerName) ? 1 : 0; } this.didThePlayerSeeTheFlop = false; }
public override void EndHandExtract(IEndHandContext context) { if (context.ShowdownCards.Count > 0) { var balance = context.MoneyLeft - this.moneyInTheBeginningOfTheHand; this.TotalTimesWentToShowdown += context.ShowdownCards.ContainsKey(this.playerName) ? 1 : 0; this.TotalTimesWonMoneyAtShowdown += balance > 0 ? 1 : 0; } }
public override void EndHandExtract(IEndHandContext context) { if (this.didThePlayerSeeTheFlop) { var balance = context.MoneyLeft - this.moneyInTheBeginningOfTheHand; this.TotalTimesWonMoneyAfterSeeingTheFlop += balance > 0 ? 1 : 0; } this.didThePlayerSeeTheFlop = false; }
public override void EndHand(IEndHandContext context) { this.UpdateCommonRow(0); if (context.ShowdownCards != null) { context.ShowdownCards.Remove(this.Player.Name); foreach (KeyValuePair <string, List <Card> > pair in context.ShowdownCards) { this.DrawSingleCard(this.row + 4, width / 2 + 27, pair.Value[1]); this.DrawSingleCard(this.row + 4, width / 2 + 22, pair.Value[0]); } } base.EndHand(context); }
public virtual void EndHand(IEndHandContext context) { }
public virtual void EndHandExtract(IEndHandContext context) { }
public virtual void EndHand(IEndHandContext context) { this.Player.EndHand(context); }
public override void EndHandExtract(IEndHandContext context) { this.IndicatorByPositions[this.CurrentPosition.Value].EndHandExtract(context); }
public override void EndHandExtract(IEndHandContext context) { var balance = context.MoneyLeft - this.moneyInTheBeginningOfTheHand; this.TotalBigBlindWon += (double)balance / (double)(this.smallBlind * 2); }