Cody

Solution 273917

Submitted on 5 Jul 2013
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(:)))

Error: Output argument "wins" (and maybe others) not assigned during call to "/users/msssystem12/ticTacToe.m>ticTacToe".

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

Error: Matrix dimensions must agree.

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

Error: Output argument "wins" (and maybe others) not assigned during call to "/users/msssystem12/ticTacToe.m>ticTacToe".

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

Error: Matrix dimensions must agree.