public static void Main()
string[,] PlayerPitch = {{"~", "~", "~", "~", "~", "~"},
{"~", "~", "~", "~", "~", "~"},
{"~", "~", "~", "~", "~", "~"},
{"~", "~", "~", "~", "~", "~"}};
string[,] CompPitch = {{"~", "~", "~", "~", "~", "~"},
{"~", "~", "~", "~", "~", "~"},
{"~", "~", "~", "~", "~", "~"},
{"~", "~", "~", "~", "~", "~"}};
Console.WriteLine("Vart vill du placera ditt första skepp?");
Console.WriteLine("Vart vill du placera ditt andra skepp?");
Console.WriteLine("Vart vill du placera ditt tredje skepp?");
Console.WriteLine("Du ska nu få försöka skjuta datorns skepp");
Console.WriteLine("Ange koordinat (Y)");
int y = int.Parse(Console.ReadLine());
Console.WriteLine("Ange koordinat (X)");
int x = int.Parse(Console.ReadLine());
if(CompPitch[y,x] == "S");
Console.WriteLine("Träff!");
static void DrawPitch(string[,] map)
Console.WriteLine("Detta är din nuvarande spelplan:");
for(int row=0; row<map.GetLength(0); row++)
for(int col=0; col<map.GetLength(1); col++)
Console.Write(map[row,col]);
static void PlaceShips(string[,] playermap)
Console.WriteLine("Ange Y-koordinat(0-3)");
int c = int.Parse(Console.ReadLine());
Console.WriteLine("Ange X-koordinat(0-5)");
int r = int.Parse(Console.ReadLine());
static void CompShips(string[,] compmap)
Random coord = new Random();