This is what i've done so far
static void Main(string[] args)
{
int[,] N = new int[10, 10];
for (int x = 0; x < 10; x++)
{
for (int y = 0; y < 10; y++)
{
N[x, y] = 0;
}
}
Console.Write(" ");
for (int x = 0; x; x++)
X = RNum(1,10);
for (int x = 0; x < 10; x++)
{
Print(x);
}
Console.Write("\n ----------------------\n");
//This is computer battleships
N[2,3] = 1;
N[0,5] = 1;
N[5,3] = 1;
N[3,7] = 2;
N[4,8] = 2;
for (int x = 0; x < 10; x++)
{
Print(N[x, y]);
}
Console.Write("\n\n");
}
Hold();
}
static void Print(int value)
{
Console.Write("{0,4:0}", value}
}
static void Hold()
{
Console.Write("\n\nPress any key to continue ...");
Console.ReadKey();
}
}
}
What should I do now?