Ad
  • Custom User Avatar

    @goodwin64 This is not what Just David is referring to. The boardstate in the screenshot you are linking to clearly has x as a winner (1s on the diagonal).

    @Just David an example of a cat's game according to the definition is a draw - so your code should be correct in the case that the moves do not matter for the outcome (which in your case would be a draw, or cat's game, hence 0)

    Your answer shouldn't depend on whose turn it is, the description says you have to determine whether the current state is a final one (x wins, o wins or it's a draw) or not (undeterminable, you do not know who's move it is)

  • Custom User Avatar

    It seems that I've caught the similar error as you.

    https://pp.vk.me/c633929/v633929334/118c2/x6M87yS7dN0.jpg

    Isn't it?