❔ Error message when trying to move direction for my tiles in a N-puzzle
Hi! I get this error message when trying to move around my tiles in my N puzzle "System.IndexOutOfRangeException has been thrown "Index was outside the bounds of the array." The error occurs in this line of code "Tile temp = Tiles[x, y];" in swaptiles method. Heres is my code: https://hatebin.com/