public GameViewModel() { _players = new List<Player>(); this._gameOptions = GameOptions.Create(); }
public void StartNewGame(PlayerNames playernNames) { if (playernNames == null || playernNames.Count == 0) return; _gameOptions = new GameOptions(); NumberOfPlayers = _gameOptions.NumberOfPlayers; ComputerPlaysWithOpenHand = _gameOptions.ComputerPlaysWithOpenHand; ComputerSkill = _gameOptions.ComputerSkill; CreateGameDeck(); CreatePlayers(playernNames); InitializeGame(); GameStarted = true; }