Пример #1
0
 public Game(Player player1, Player player2, Board board, ResultAnalyzer resultAnalyzer)
 {
     _player1        = player1;
     _player2        = player2;
     _board          = board;
     _resultAnalyzer = resultAnalyzer;
     _currentPlayer  = player1;
 }
Пример #2
0
 public Game(ResultAnalyzer analyser, Board board, Player player1, Player player2)
 {
     this._gameStatus    = GameStatus.ONGOING;
     this._analyser      = analyser;
     this._board         = board;
     this._player1       = player1;
     this._player2       = player2;
     this._currentPlayer = GetPlayerTurn();
 }