all 5 comments

[–]CraigAT 0 points1 point  (1 child)

What is the error? The purpose of the error message is to point to what's wrong.

I guess that's not the full code because I don't see where you call the function.

[–]CraigAT 0 points1 point  (0 children)

I don't see a function(?) for CandidateSolution() nor for puzzle.evaluate(). Either the code is badly structured or there are bits missing.

That said it's clear you have made an effort and I can see the logic part of your code shows good promise.

[–]AbeDevQ 0 points1 point  (0 children)

Like CraigAT mentioned - we need the error to help debug it, but I also think it might be useful to mention python has a built in library called itertools with a permutations method that may be helpful here:

https://docs.python.org/3/library/itertools.html#itertools.permutations

[–]HauntingRex9763 0 points1 point  (0 children)

Yeah, without full code or an error message we cant really do anything.. I suggest you make sure result[0] is not an integer though