Cody

# Problem 58. Tic Tac Toe FTW

Solution 1905607

Submitted on 20 Aug 2019
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Fail
a = [ 1 0 1 0 -1 0 -1 -1 1]; b = [4 8]; out = ticTacToe(a); assert(isequal(out(:), b(:)))

Output argument "wins" (and maybe others) not assigned during call to "ticTacToe". Error in Test1 (line 6) out = ticTacToe(a);

2   Fail
a = [ 1 0 0 0 -1 0 -1 0 1]; b = [0]; out = ticTacToe(a); assert(isequal(out(:), b(:)))

Output argument "wins" (and maybe others) not assigned during call to "ticTacToe". Error in Test2 (line 6) out = ticTacToe(a);

3   Fail
a = [ 1 0 0 0 1 -1 1 -1 -1]; b = [2 7]; out = ticTacToe(a); assert(isequal(out(:), b(:)))

Output argument "wins" (and maybe others) not assigned during call to "ticTacToe". Error in Test3 (line 6) out = ticTacToe(a);

4   Fail
a = [ 1 0 0 -1 1 -1 1 -1 0]; b = [7 9]; out = ticTacToe(a); assert(isequal(out(:), b(:)))

Output argument "wins" (and maybe others) not assigned during call to "ticTacToe". Error in Test4 (line 6) out = ticTacToe(a);

### Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!