Cody

Solution 1276663

Submitted on 26 Sep 2017 by David Verrelli
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

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

| ind = 2 4 6 7 8 || Name Size Bytes Class Attributes ind 5x1 40 double ||| wins = 0

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

| ind = 2 4 7 || Name Size Bytes Class Attributes ind 3x1 24 double ||| wins = 2 wins = 2 7

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

| ind = 4 7 9 || Name Size Bytes Class Attributes ind 3x1 24 double ||| wins = 7 wins = 7 9