Cody

Solution 1923356

Submitted on 5 Sep 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   Pass
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))

2   Fail
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))

Assertion failed.

3   Pass
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))

4   Fail
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))

Assertion failed.

5   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,0,1; 0,1,0,1,0,1]; assert(isequal(tic_tac_logic_check(board),1))

6   Fail
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))

Assertion failed.

7   Fail
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))

Assertion failed.

8   Pass
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))

9   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; 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))

10   Fail
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))

Assertion failed.

11   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,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))

12   Fail
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))

Assertion failed.

13   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,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))

14   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,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))

Assertion failed.

15   Pass
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))

16   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,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))

Assertion failed.

17   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,0,1,0,1,1]; assert(isequal(tic_tac_logic_check(board),0))

Assertion failed.

18   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,1,0,0,1,1]; assert(isequal(tic_tac_logic_check(board),1))

19   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,1,1; 0,1,0,1,0,1]; assert(isequal(tic_tac_logic_check(board),0))

Assertion failed.

20   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; 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))

Assertion failed.