Fix
This commit is contained in:
parent
9be0242296
commit
3e84127331
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user