Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
a = [ 1 0 1
0 -1 0
-1 -1 1];
b = [4 8];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
|
2 | Pass |
a = [ 1 0 0
0 -1 0
-1 0 1];
b = [0];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
|
3 | Pass |
a = [ 1 0 0
0 1 -1
1 -1 -1];
b = [2 7];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
|
4 | Pass |
a = [ 1 0 0
-1 1 -1
1 -1 0];
b = [7 9];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
|
Back to basics 17 - white space
245 Solvers
Back to basics 18 - justification
176 Solvers
390 Solvers
Sum the numbers on the main diagonal
453 Solvers
462 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!