Bogdanov D.S. LabWork02 #2

Closed
the wants to merge 5 commits from LabWork02 into LabWork01
Showing only changes of commit 3e84127331 - Show all commits

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))