public void DebugHands(int numberOfhands) { for (int i = 0; i < numberOfhands; i++) { var hand = new BjHand(10); int number = Rand.GetRange(2, 8); hand.DebugSetHand(number); CurrentHands.Add(hand); } }
/// <summary> /// Hands the exists. /// </summary> /// <param name="hand">The hand.</param> /// <returns></returns> private bool HandExists(BjHand hand) { if (!CurrentHands.Contains(hand)) { Log.Error("CheckHand: hand missing from CurrentHands."); return(false); } return(true); }
public void PlaceInitialBet() { CurrentHands.Add(new PlayerHand { Bet = _playerStrategy.GetInitialBetAmount(HandHistory.LastOrDefault(), CurrentTotalCash, _currentDealer.TableSettings), Outcome = HandOutcome.InProgress }); CurrentTotalCash -= InPlayHand.Bet; }
private void SplitCurrentHand() { CurrentHands.Add(InPlayHand.Split()); CurrentTotalCash -= InPlayHand.Bet; }
public void ClearCurrentHands() { CurrentHands.Clear(); _currentInPlayHandIndex = 0; }