Coding Challenge: Tic-Tac-Toe has questable test

Test 2 of the challenge states that:

tic_tac_toe([["X", "O", "X"], ["X", "O", "X"], ["O", "O", "X"]]) should return "O wins"

But there are also 3 “X” in column 2, so a different but equally valid codes may yield “X wins“ and fail this test.

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.

Thanks. The issue is raised.

1 Like