It assigns 33 to (1, 3). In that spot is a -1 which must mean that it did not work out (The recursive call returned false). So instead of subtracting 1 from the kthMove it moved on straight to 34?...
Type: Posts; User: tgw46366
It assigns 33 to (1, 3). In that spot is a -1 which must mean that it did not work out (The recursive call returned false). So instead of subtracting 1 from the kthMove it moved on straight to 34?...
Thanks for the tip!
Also, the first number to be missing appears to be 33. It goes straight from 32 to 34. I added a print statement for the kthMove to see how it is throughout the the recursive...
Sure Thing. Sorry for not posting it earlier. The output for the input position (0,0) is:
1 24 3 26 5 28 7 30
-1 17 40 -1 42 ...
I am required to make a recursive backtracking solution to the Knight's Tour problem using and 8x8 board and a starting location which is manually picked. I believe the problem lies in the recursive...
My name is Tyler and i am enrolled in a State University of Pennsylvania for Computer Science and Mathematics. :D I absolutely love to learn and program