Ad
  • Custom User Avatar

    It is better to avoid creating a list. If you remove the brackets, then it will be a list generator, which will not create the whole list.

  • Custom User Avatar

    Hi!
    One important test case is missing from the test suite: the one, where the winning combination on the diagonal runnung from the top right to the bottom left corner. I missed this check in my code initially and tests passed anyway. Example board:

    [[0, 2, 1],
     [2, 1, 2],
     [1, 0, 2]]