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);
        }
Beispiel #3
0
        public void PlaceInitialBet()
        {
            CurrentHands.Add(new PlayerHand
            {
                Bet     = _playerStrategy.GetInitialBetAmount(HandHistory.LastOrDefault(), CurrentTotalCash, _currentDealer.TableSettings),
                Outcome = HandOutcome.InProgress
            });

            CurrentTotalCash -= InPlayHand.Bet;
        }
Beispiel #4
0
 private void SplitCurrentHand()
 {
     CurrentHands.Add(InPlayHand.Split());
     CurrentTotalCash -= InPlayHand.Bet;
 }
Beispiel #5
0
 public void ClearCurrentHands()
 {
     CurrentHands.Clear();
     _currentInPlayHandIndex = 0;
 }