Cody

Solution 609987

Submitted on 1 Apr 2015
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
%% board = [0,1,1,0,0,1; 1,0,1,0,0,1; 0,1,0,1,1,0; 0,1,0,1,0,1; 1,0,1,0,1,0; 1,0,0,1,1,0]; assert(isequal(tic_tac_logic_check(board),1))

Error: Assertion failed.

2   Pass
%% board = [0,1,0,1,0,1; 0,1,0,1,0,1; 1,0,1,0,1,0; 1,0,1,0,1,0; 0,1,0,1,0,1; 1,0,1,0,1,0]; assert(isequal(tic_tac_logic_check(board),0))

3   Fail
%% board = [0,1,0,0,1,0,1,1; 0,0,1,0,1,1,0,1; 1,0,1,1,0,1,0,0; 0,1,0,1,0,0,1,1; 1,1,0,0,1,1,0,0; 1,0,1,0,1,1,0,0; 0,0,1,1,0,0,1,1; 1,1,0,1,0,0,1,0]; assert(isequal(tic_tac_logic_check(board),1))

Error: Assertion failed.

4   Pass
%% board = [0,0,1,1,0,1,1,0,1,0; 1,1,0,0,1,1,0,1,0,0; 1,1,0,0,1,0,1,0,1,0; 0,0,1,1,0,1,0,1,0,1; 1,0,1,1,0,0,1,1,0,0; 1,1,0,0,1,1,0,0,1,0; 0,1,0,1,0,0,1,0,1,1; 0,0,1,0,1,0,1,1,0,1]; assert(isequal(tic_tac_logic_check(board),0))

5   Fail
%% board = [1,0,1,0,1,0; 0,1,1,0,1,0; 1,0,0,1,0,1; 1,0,0,1,1,0; 0,1,1,0,0,1; 0,1,0,1,0,1]; assert(isequal(tic_tac_logic_check(board),1))

Error: Assertion failed.

6   Pass
%% board = [0,1,1,0,0,1; 1,0,1,0,0,1; 0,1,0,1,1,0; 0,1,1,0,0,1; 1,0,1,0,1,0; 1,0,0,1,1,0]; assert(isequal(tic_tac_logic_check(board),0))

7   Pass
%% board = [0,1,0,0,1,1,0,1; 0,0,1,0,1,1,0,1; 1,0,1,1,0,1,0,0; 0,1,0,1,0,0,1,1; 1,1,0,0,1,1,0,0; 1,0,1,0,1,1,0,0; 0,0,1,1,0,0,1,1; 1,1,0,1,0,0,1,0]; assert(isequal(tic_tac_logic_check(board),0))

8   Fail
%% board = [0,0,1,1,0,1,1,0; 1,1,0,1,0,0,1,0; 0,0,1,0,1,1,0,1; 0,1,0,1,0,1,0,1; 1,0,1,0,1,0,1,0; 0,0,1,0,1,0,1,1; 1,1,0,1,0,1,0,0; 1,1,0,0,1,0,0,1]; assert(isequal(tic_tac_logic_check(board),1))

Error: Assertion failed.

9   Fail
%% board = [1,0,1,0,1,0,1,0; 1,1,0,0,1,0,1,0; 0,0,1,1,0,1,0,1; 1,1,0,1,0,0,1,0; 0,0,1,0,1,1,0,1; 0,1,0,1,0,1,1,0; 1,0,1,0,1,0,0,1; 0,1,0,1,0,1,0,1]; assert(isequal(tic_tac_logic_check(board),1))

Error: Assertion failed.

10   Pass
%% board = [0,0,1,1,0,1,1,0; 1,1,0,1,0,0,1,0; 0,0,1,1,0,1,0,1; 0,1,0,1,0,1,0,1; 1,0,1,0,1,0,1,0; 0,0,1,0,1,0,1,1; 1,1,0,1,0,1,0,0; 1,1,0,0,1,0,0,1]; assert(isequal(tic_tac_logic_check(board),0))

11   Fail
%% board = [0,1,1,0,1,0,1,0,1,0; 1,1,0,0,1,0,1,1,0,0; 1,0,0,1,0,1,0,0,1,1; 0,1,1,0,1,0,1,0,0,1; 1,0,1,0,0,1,0,1,1,0; 1,0,0,1,1,0,1,0,0,1; 0,1,0,1,0,1,0,1,1,0; 0,1,1,0,0,1,1,0,0,1; 1,0,0,1,1,0,0,1,0,1; 0,0,1,1,0,1,0,1,1,0]; assert(isequal(tic_tac_logic_check(board),1))

Error: Assertion failed.

12   Pass
%% board = [0,0,0,1,1,1; 1,1,1,0,0,0; 1,0,1,0,1,0; 0,1,0,1,0,1; 1,1,0,0,0,1; 0,0,1,1,1,0]; assert(isequal(tic_tac_logic_check(board),0))

13   Fail
%% board = [1,1,0,0,1,0,1,0,0,1; 1,0,0,1,0,1,0,1,1,0; 0,1,1,0,1,0,0,1,0,1; 0,0,1,1,0,1,1,0,1,0; 1,0,0,1,1,0,1,0,0,1; 1,1,0,0,1,0,0,1,1,0; 0,1,1,0,0,1,0,1,1,0; 0,0,1,1,0,1,1,0,0,1]; assert(isequal(tic_tac_logic_check(board),1))

Error: Assertion failed.

14   Pass
%% board = [0,1,1,0,1,0,1,0,1,0; 1,1,0,0,1,0,1,1,0,0; 1,0,0,1,0,1,0,0,1,1; 0,1,1,0,1,0,1,0,0,1; 1,0,1,0,0,1,0,1,1,0; 1,0,1,0,1,0,1,0,0,1; 0,1,0,1,0,1,0,1,1,0; 0,1,1,0,0,1,1,0,0,1; 1,0,0,1,1,0,0,1,0,1; 0,0,1,1,0,1,0,1,1,0]; assert(isequal(tic_tac_logic_check(board),0))

15   Fail
%% board = [0,0,1,1,0,1,0,0,1,1; 1,1,0,0,1,1,0,1,0,0; 1,1,0,0,1,0,1,0,1,0; 0,0,1,1,0,1,0,1,0,1; 1,0,1,1,0,0,1,1,0,0; 1,1,0,0,1,1,0,0,1,0; 0,1,0,1,0,0,1,0,1,1; 0,0,1,0,1,0,1,1,0,1]; assert(isequal(tic_tac_logic_check(board),1))

Error: Assertion failed.

16   Pass
%% board = [1,1,0,0,1,0,1,0,0,1; 1,0,0,1,0,1,0,1,1,0; 0,1,1,0,1,0,0,1,0,1; 0,0,1,1,0,1,1,0,0,1; 1,0,0,1,1,0,1,0,0,1; 1,1,0,0,1,0,0,1,1,0; 0,1,1,0,0,1,0,1,1,0; 0,0,1,1,0,1,1,0,0,1]; assert(isequal(tic_tac_logic_check(board),0))

17   Pass
%% board = [1,1,0,0,1,1,0,0; 0,0,1,1,0,1,0,1; 1,0,1,1,0,0,1,0; 0,1,0,0,1,0,1,1; 1,0,1,0,1,1,0,0; 0,1,0,0,1,0,1,1]; assert(isequal(tic_tac_logic_check(board),0))

18   Fail
%% board = [1,1,0,0,1,1,0,0; 0,0,1,1,0,1,0,1; 1,0,1,1,0,0,1,0; 0,1,0,0,1,0,1,1; 1,0,1,0,1,1,0,0; 0,1,0,1,0,0,1,1]; assert(isequal(tic_tac_logic_check(board),1))

Error: Assertion failed.

19   Pass
%% board = [1,0,1,0,1,0; 0,1,1,0,1,0; 1,0,0,1,0,1; 1,0,0,1,1,0; 0,1,1,0,1,1; 0,1,0,1,0,1]; assert(isequal(tic_tac_logic_check(board),0))

20   Pass
%% board = [1,0,1,0,1,0,1,0; 1,1,0,0,1,0,1,0; 0,0,1,1,0,1,0,1; 1,1,0,1,0,0,1,0; 1,0,1,0,0,1,0,1; 0,1,0,1,0,1,1,0; 1,0,1,0,1,0,0,1; 0,1,0,1,0,1,0,1]; assert(isequal(tic_tac_logic_check(board),0))