Example #1
0
 public ConsoleController(int heightBoard = DefaultSettings.DEFAULT_BOARD_LONG,
                          int whidthBoard = DefaultSettings.DEFAULT_BOARD_WHIDTH)
 {
     _gameFieldController = new ChessBoardInitializer();
     _gameField           = _gameFieldController.InitializeGameField(heightBoard, whidthBoard);
     _runChessBoard       = _gameFieldController.InitializeGameFieldController(_gameField);
 }
Example #2
0
 public IChessBoardStart InitializeGameFieldController(IGameFieldContainer gameField)
 {
     return(new ChessBoardController(gameField));
 }
Example #3
0
 public Cell(GameField gameField, Coordinate coordinate)
 {
     _owner      = gameField;
     _coordinate = coordinate;
 }
 public ChessBoardController(IGameFieldContainer gameField)
 {
     _gameField = gameField;
 }