Problem 44363. Is this is a Tic Tac Toe X Win?
Solution Stats
Problem Comments
-
2 Comments
Sean de Wolski
on 17 Oct 2017
Solution 7 should be correct. The diagonal of -1s is a valid win.
Hope all is well with you, Doug!
Ned Gulley
on 17 Oct 2017
@Sean, I think Doug's got it right. He's asking only if the X side (that is +1) is in a winning position. In test 7, the O side (-1) is in a winning position. So the answer given is correct.
Solution Comments
-
1 Comment
Jan Orwat
on 1 Oct 2021
with a little help of magic ;)
-
1 Comment
李君
on 23 Mar 2021
sum could not return the sum of all elements
-
2 Comments
Nghia Huynh
on 28 Jul 2020
Test 7 should return true. There is a diagonal of -1.
goc3
on 29 Sep 2020
No. See Ned's comment and read the problem description again.
-
1 Comment
Daniel
on 18 Dec 2017
Shouldn't Test 7 be y_correct = 1?
-
1 Comment
Michal Dobai
on 15 Dec 2017
To be fair, you didn't mention anything about anti-diagonal in your problem description (test no. 4). Or am I missing something?
Problem Recent Solvers494
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!