static void Main(string[] args) { Ship skib = new Ship(5); PlayArea playArea = new PlayArea(); playArea.GenerateArea(); playArea.PlaceShip(4, 1, skib, true); CreatePlayerArea(playArea); Console.WriteLine(""); Console.ReadLine(); }
static void Main(string[] args) { PlayArea playArea = new PlayArea(); PlayArea enemyArea = new PlayArea(); RandomShipPlacer placer = new RandomShipPlacer(); playArea.GenerateArea(); enemyArea.GenerateArea(); enemyArea.GenerateEnemyShips(); CreatePlayerArea(playArea); Console.WriteLine(" "); placer.PlaceShip(enemyArea.EnemyShips, 0, enemyArea.EnemyFields); Console.ReadLine(); placer.PlaceShip(enemyArea.EnemyShips, 1, enemyArea.EnemyFields); Console.ReadLine(); placer.PlaceShip(enemyArea.EnemyShips, 2, enemyArea.EnemyFields); Console.ReadLine(); placer.PlaceShip(enemyArea.EnemyShips, 3, enemyArea.EnemyFields); Console.ReadLine(); placer.PlaceShip(enemyArea.EnemyShips, 4, enemyArea.EnemyFields); CreateEnemyArea(enemyArea); Console.WriteLine(""); Console.ReadLine(); }