Ad
  • Default User Avatar

    @ISO497 no worries ;) and congrats on solving!

  • Default User Avatar

    Hi - as this is a quite "easy" 3 kyu, it's not fair to give you complete detailled explanation; but here is a hint to help you debug:

    currently in the example tests there is exactly 1 puzzle and 1 solution, and 1 test:

    test.assert_equals(sudoku(puzzle), solution, "Incorrect solution for the following puzzle: " + str(puzzle))

    What you should do is copy the exact puzzle and solution and test and rename them puzzle2 solution2 and therefore add the 2nd test:

    test.assert_equals(sudoku(puzzle2), solution2, "Incorrect solution for the following puzzle: " + str(puzzle2))

    You now have 2 tests, that are running on the "same" inputs, one after the other. You will notice that, despite both tests being identical, your code fails on the 2nd test. Up to you to find out why ;)