Ad
  • Custom User Avatar

    thank you!

  • Custom User Avatar

    Are the tests for Python confirmed to be correct now? I wrote a fairly compact solution that used some techniques to simplify the algorithm giving me a lot of confidence in it, and I got all the tests correct except for one of the edge cases. I tested my program on every stalemate and checkmate position in the Wikipedia article, and got them all correct. I investigated my algorithm carefully and included some tests that wouldn't come up in a real game, such as a starting position with both kings in check from the other king and my program behaves what I think is correctly in those cases. I still don't get that one edge case.