示例#1
0
 public GameViewModel()
 {
     _players = new List<Player>();
       this._gameOptions = GameOptions.Create();
 }
示例#2
0
        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;
        }