I have a Missionaries and Cannibals solver, but, when it prints the solution out it doubles all the solutions...
I guess that my check that it dosen't return to a previous state does something wrong.
Can anyone spot the error?
Code at:
I guess that my check that it dosen't return to a previous state does something wrong.
Can anyone spot the error?
Code at: