I’m currently making battleships as an assignment in school. I’m almost finished with the code but I have encountered a problem. I have written my code in such a way that the computer will always shoot at random targets.
aiShotX = randomNumber.Next(1,6); aiShotY = randomNumber.Next(1,6);
how can I make so if the computer once shot X = 5 and Y = 3. Those coordinates are dead and won’t be shot at again?