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(:)))
c =
0 0 0
0 0 0
0 0 0
f =
1 0 1
c =
0 1 0
0 0 0
0 0 0
f =
0 -1 0
f =
-1 -1 1
c =
0 1 0
0 0 1
0 0 0
e =
1 -1 -1
wins =
4
8
|
2 | Pass |
a = [ 1 0 0
0 -1 0
-1 0 1];
b = [0];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
c =
0 0 0
0 0 0
0 0 0
f =
1 0 0
f =
0 -1 0
f =
-1 0 1
e =
0 -1 -1
wins =
0
|
3 | Pass |
a = [ 1 0 0
0 1 -1
1 -1 -1];
b = [2 7];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
c =
0 0 0
0 0 0
0 0 0
f =
1 0 0
f =
0 1 -1
f =
1 -1 -1
c =
0 0 0
1 0 0
0 0 0
e =
0 1 1
wins =
2
7
|
4 | Pass |
a = [ 1 0 0
-1 1 -1
1 -1 0];
b = [7 9];
out = ticTacToe(a);
assert(isequal(out(:), b(:)))
c =
0 0 0
0 0 0
0 0 0
f =
1 0 0
f =
-1 1 -1
f =
1 -1 0
e =
0 1 1
wins =
7
9
|
Check to see if a Sudoku Puzzle is Solved
278 Solvers
1309 Solvers
753 Solvers
Reverse the elements of an array
687 Solvers
338 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!