Cody

Solution 2023287

Submitted on 15 Nov 2019 at 15:43
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(:)))

wins = 8 4 wins = 8 4 wins = 8 4

Assertion failed.

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

wins = 0×2 empty double matrix wins = 0×4 empty double matrix wins = 0×6 empty double matrix

Assertion failed.

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

wins = 2 wins = 2 wins = 2

Assertion failed.

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

wins = 2 wins = 2 wins = 2

Assertion failed.

Suggested Problems

More from this Author95