Solve a Hidato puzzle: Difference between revisions
m
→{{header|Julia}}
Line 1,943:
maxrow, maxcol = size(board)
for i in max(row - 1, 1):min(row + 1, maxrow), j in max(col -1, 1):min(col + 1, maxcol)
if !(i == row && j == col) && hidatosolve(board, fixed, i, j, sought + 1, next)
return true
end
|