示例#1
0
 public void StartGame(string player1, string player2, Settings settings)
 {
     _settings = settings;
     _game = new GameInfo(settings) { Player1 = player1, Player2 = player2 };
     OnGameStarted(_game);
     _game.NewTurn();
     OnTurnStarted(_game);
 }
示例#2
0
 public GameInfo(Settings settings)
 {
     GameId = Guid.NewGuid().ToString("N");
     _settings = settings;
     _turnData = new List<TurnData>();
 }