public void Initialize() { _numberOfCardDecks = 6; _numberOfPlayers = 3; _cards = CardDeckWithFivesTensAndFaceCards(); _blackjackGameRound = new BlackjackGameRound(_cards, _numberOfPlayers); _blackjackGameRound.DealCards(); }
/// <summary> /// Start a new game round. /// </summary> public void StartNewRound() { if (NumberOfPlayers > 0) { _actualGameRound = new BlackjackGameRound(_playingCards, _players.Count); } else { throw new InvalidOperationException("Game round cannot be started without any players!. At least one player should be available to start the round"); } }