how to fix my infinity loop inside a recursi
I’m trying to make a code that checks from what positions the knight can visit the entire board without going there again. I know there’s an infinite loop inside my function but I do not understand what causes it and how to fix it. I’m not sure how to make my code stop since it does stop with my “else” in similar codes I wrote