-
2 Comments
Andrew Newell
on 7 Dec 2017
Now this is elegant!
Rafael S.T. Vieira
on 8 Jul 2020
It is not a general solution. It would fail on:
x = [ 1 1 -1; -1 1 -1; -1 1 0];
y_correct = 0;
PS: The game ended but O kept on playing.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!