increase number of neighbors in search.cpp

This commit is contained in:
Pavel 2021-11-09 13:28:23 +01:00
parent 19ab754914
commit e7d6609981
1 changed files with 2 additions and 2 deletions

View File

@ -99,9 +99,9 @@ void astar(int s, int d, int width, int size, int boat)
a = u % width;
b = u / width;
for(i = -30; i < 31; ++i)
for(i = -120; i < 121; ++i)
{
for(j = -30; j < 31; ++j)
for(j = -120; j < 121; ++j)
{
if(i == 0 && j == 0) continue;
n = a + i + (b + j) * width;