private void DoGameIteration() { //-Get consoleStream.Output("1 - TakeCard\n2 - Pass\n"); int response = consoleStream.Input(); //-Post if (response == 1) { dealerService.HandOutCards(); consoleStream.Output(string.Format("You've pulled {0}\nYour current score {1}\n", BJSystem.GetCardName(players[1].Cards.Last()), players[1].Score)); DoGameIteration(); return; } if (response == 2) { players[1].IsPassing = () => true; int i = 0; while (!dealerService.HandOutCards()) { ; } #region old debug code // == false && i < 10) //{ // consoleStream.Output(string.Format("dealer pull card score={0}, last card={1}\n", // dealer.Score, // dealer.Cards.Last())); // i++; //} #endregion PostIteration(); return; } }