This commit is contained in:
the 2022-11-21 16:48:41 +04:00
parent 9be0242296
commit 3e84127331

View File

@ -34,7 +34,7 @@ namespace Ship
while (counter < 10)
{
int x = _random.Next(2, 49);
int y = _random.Next(3, 50);
int y = _random.Next(3, 49);
var points = new int[] { _map[x, y], _map[x, y + 1], _map[x - 1, y + 1], _map[x + 1, y + 1] };
var forComparison = new int[] { _freeRoad, _freeRoad, _freeRoad, _freeRoad };
if (points.SequenceEqual(forComparison))