/// <summary> /// Assigns ships to the game /// </summary> private void AssignShipsToGame() { var ships = new ShipsForGame <Type, int>(); ships.Add(typeof(BattleShip), NO_OF_BATTLESHIPS); ships.Add(typeof(Destroyer), NO_OF_DESTROYERS); ShipsForGame = ships; }
/// <summary> /// Assigns ships to the game /// </summary> private void AssignShipsToGame() { var ships = new ShipsForGame<Type, int>(); ships.Add(typeof(BattleShip), NO_OF_BATTLESHIPS); ships.Add(typeof(Destroyer), NO_OF_DESTROYERS); ShipsForGame = ships; }