private void Initialise(Size boardSize, IEnumerable <ShipRequest> shipRequests) { _logger.LogDebug("Build board"); _gameBoard = _gameBoardBuilder.Build(boardSize); _logger.LogDebug("Build ships"); _ships = _shipBuilder.Build(shipRequests); _logger.LogDebug("Place ships"); _shipPlacementService.PlaceShips(_ships, _gameBoard); }
public Game(IGameBoardBuilder builder) { GameBoard = builder.Build(GameSettings.BOARD_HEIGHT, GameSettings.BOARD_WIDTH); }