Cody

Solution 2078450

Submitted on 3 Jan 2020
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 0 0 0 1 1 1 0 1 0 1 0 1 1 1 0 0 0 1 1 1 0 0 0]; moves = lights_out_1(board); %should be [5 7 23] b1 = diag(ones(1,5),0) + diag(ones(1,4),1) + diag(ones(1,4),-1); b2 = eye(5); b3 = zeros(5); b_map = [b1,b2,b3,b3,b3;b2,b1,b2,b3,b3;b3,b2,b1,b2,b3;b3,b3,b2,b1,b2;b3,b3,b3,b2,b1]; for i = 1:numel(moves) board = mod(board + reshape(b_map(moves(i),:),[5,5]),2); %remove semicolon to display progress end assert(sum(abs(board(:)))==0) assert(numel(moves)==3)

ans = 1 2 3 1 2 4 1 2 5 1 2 6 1 2 7 1 2 8 1 2 9 1 2 10 1 2 11 1 2 12 1 2 13 1 2 14 1 2 15 1 2 16 1 2 17 1 2 18 1 2 19 1 2 20 1 2 21 1 2 22 1 2 23 1 2 24 1 2 25 1 3 4 1 3 5 1 3 6 1 3 7 1 3 8 1 3 9 1 3 10 1 3 11 1 3 12 1 3 13 1 3 14 1 3 15 1 3 16 1 3 17 1 3 18 1 3 19 1 3 20 1 3 21 1 3 22 1 3 23 1 3 24 1 3 25 1 4 5 1 4 6 1 4 7 1 4 8 1 4 9 1 4 10 1 4 11 1 4 12 1 4 13 1 4 14 1 4 15 1 4 16 1 4 17 1 4 18 1 4 19 1 4 20 1 4 21 1 4 22 1 4 23 1 4 24 1 4 25 1 5 6 1 5 7 1 5 8 1 5 9 1 5 10 1 5 11 1 5 12 1 5 13 1 5 14 1 5 15 1 5 16 1 5 17 1 5 18 1 5 19 1 5 20 1 5 21 1 5 22 1 5 23 1 5 24 1 5 25 1 6 7 1 6 8 1 6 9 1 6 10 1 6 11 1 6 12 1 6 13 1 6 14 1 6 15 1 6 16 1 6 17 1 6 18 1 6 19 1 6 20 1 6 21 1 6 22 1 6 23 1 6 24 1 6 25 1 7 8 1 7 9 1 7 10 1 7 11 1 7 12 1 7 13 1 7 14 1 7 15 1 7 16 1 7 17 1 7 18 1 7 19 1 7 20 1 7 21 1 7 22 1 7 23 1 7 24 1 7 25 1 8 9 1 8 10 1 8 11 1 8 12 1 8 13 1 8 14 1 8 15 1 8 16 1 8 17 1 8 18 1 8 19 1 8 20 1 8 21 1 8 22 1 8 23 1 8 24 1 8 25 1 9 10 1 9 11 1 9 12 1 9 13 1 9 14 1 9 15 1 9 16 1 9 17 1 9 18 1 9 19 1 9 20 1 9 21 1 9 22 1 9 23 1 9 24 1 9 25 1 10 11 1 10 12 1 10 13 1 10 14 1 10 15 1 10 16 1 10 17 1 10 18 1 10 19 1 10 20 1 10 21 1 10 22 1 10 23 1 10 24 1 10 25 1 11 12 1 11 13 1 11 14 1 11 15 1 11 16 1 11 17 1 11 18 1 11 19 1 11 20 1 11 21 1 11 22 1 11 23 1 11 24 1 11 25 1 12 13 1 12 14 1 12 15 1 12 16 1 12 17 1 12 18 1 12 19 1 12 20 1 12 21 1 12 22 1 12 23 1 12 24 1 12 25 1 13 14 1 13 15 1 13 16 1 13 17 1 13 18 1 13 19 1 13 20 1 13 21 1 13 22 1 13 23 1 13 24 1 13 25 1 14 15 1 14 16 1 14 17 1 14 18 1 14 19 1 14 20 1 14 21 1 14 22 1 14 23 1 14 24 1 14 25 1 15 16 1 15 17 1 15 18 1 15 19 1 15 20 1 15 21 1 15 22 1 15 23 1 15 24 1 15 25 1 16 17 1 16 18 1 16 19 1 16 20 1 16 21 1 16 22 1 16 23 1 16 24 1 16 25 1 17 18 1 17 19 1 17 20 1 17 21 1 17 22 1 17 23 1 17 24 1 17 25 1 18 19 1 18 20 1 18 21 1 18 22 1 18 23 1 18 24 1 18 25 1 19 20 1 19 21 1 19 22 1 19 23 1 19 24 1 19 25 1 20 21 1 20 22 1 20 23 1 20 24 1 20 25 1 21 22 1 21 23 1 21 24 1 21 25 1 22 23 1 22 24 1 22 25 1 23 24 1 23 25 1 24 25 2 3 4 2 3 5 2 3 6 2 3 7 2 3 8 2 3 9 2 3 10 2 3 11 2 3 12 2 3 13 2 3 14 2 3 15 2 3 16 2 3 17 2 3 18 2 3 19 2 3 20 2 3 21 2 3 22 2 3 23 2 3 24 2 3 25 2 4 5 2 4 6 2 4 7 2 4 8 2 4 9 2 4 10 2 4 11 2 4 12 2 4 13 2 4 14 2 4 15 2 4 16 2 4 17 2 4 18 2 4 19 2 4 20 2 4 21 2 4 22 2 4 23 2 4 24 2 4 25 2 5 6 2 5 7 2 5 8 2 5 9 2 5 10 2 5 11 2 5 12 2 5 13 2 5 14 2 5 15 2 5 16 2 5 17 2 5 18 2 5 19 2 5 20 2 5 21 2 5 22 2 5 23 2 5 24 2 5 25 2 6 7 2 6 8 2 6 9 2 6 10 2 6 11 2 6 12 2 6 13 2 6 14 2 6 15 2 6 16 2 6 17 2 6 18 2 6 19 2 6 20 2 6 21 2 6 22 2 6 23 2 6 24 2 6 25 2 7 8 2 7 9 2 7 10 2 7 11 2 7 12 2 7 13 2 7 14 2 7 15 2 7 16 2 7 17 2 7 18 2 7 19 2 7 20 2 7 21 2 7 22 2 7 23 2 7 24 2 7 25 2 8 9 2 8 10 2 8 11 2 8 12 2 8 13 2 8 14 2 8 15 2 8 16 2 8 17 2 8 18 2 8 19 2 8 20 2 8 21 2 8 22 2 8 23 2 8 24 2 8 25 2 9 10 2 9 11 2 9 12 2 9 13 2 9 14 2 9 15 2 9 16 2 9 17 2 9 18 2 9 19 2 9 20 2 9 21 2 9 22 2 9 23 2 9 24 2 9 25 2 10 11 2 10 12 2 10 13 2 10 14 2 10 15 2 10 16 2 10 17 2 10 18 2 10 19 2 10 20 2 10 21 2 10 22 2 10 23 2 10 24 2 10 25 2 11 12 2 11 13 2 11 14 2 11 15 2 11 16 2 11 17 2 11 18 2 11 19 2 11 20 2 11 21 2 11 22 2 11 23 2 11 24 2 11 25 2 12 13 2 12 14 2 12 15 2 12 16 2 12 17 2 12 18 2 12 19 2 12 20 2 12 21 2 12 22 2 12 23 2 12 24 2 12 25 2 13 14 2 13 15 2 13 16 2 13 17 2 13 18 2 13 19 2 13 20 2 13 21 2 13 22 2 13 23 2 13 24 2 13 25 2 14 15 2 14 16 2 14 17 2 14 18 2 14 19 2 14 20 2 14 21 2 14 22 2 14 23 2 14 24 2 14 25 2 15 16 2 15 17 2 15 18 2 15 19 2 15 20 2 15 21 2 15 22 2 15 23 2 15 24 2 15 25 2 16 17 2 16 18 2 16 19 2 16 20 2 16 21 2 16 22 2 16 23 2 16 24 2 16 25 2 17 18 2 17 19 2 17 20 2 17 21 2 17 22 2 17 23 2 17 24 2 17 25 2 18 19 2 18 20 2 18 21 2 18 22 2 18 23 2 18 24 2 18 25 2 19 20 2 19 21 2 19 22 2 19 23 2 19 24 2 19 25 2 20 21 2 20 22 2 20 23 2 20 24 2 20 25 2 21 22 2 21 23 2 21 24 2 21 25 2 22 23 2 22 24 2 22 25...

Output argument "moves" (and maybe others) not assigned during call to "lights_out_1". Error in Test1 (line 6) moves = lights_out_1(board); %should be [5 7 23]

2   Fail
board = [1 1 0 0 0 1 0 1 0 0 0 1 1 1 0 0 0 1 0 1 0 0 0 1 1]; moves = lights_out_1(board); %should be [1 13 25] b1 = diag(ones(1,5),0) + diag(ones(1,4),1) + diag(ones(1,4),-1); b2 = eye(5); b3 = zeros(5); b_map = [b1,b2,b3,b3,b3;b2,b1,b2,b3,b3;b3,b2,b1,b2,b3;b3,b3,b2,b1,b2;b3,b3,b3,b2,b1]; for i = 1:numel(moves) board = mod(board + reshape(b_map(moves(i),:),[5,5]),2); %remove semicolon to display progress end assert(sum(abs(board(:)))==0) assert(numel(moves)==3)

ans = 1 2 3 1 2 4 1 2 5 1 2 6 1 2 7 1 2 8 1 2 9 1 2 10 1 2 11 1 2 12 1 2 13 1 2 14 1 2 15 1 2 16 1 2 17 1 2 18 1 2 19 1 2 20 1 2 21 1 2 22 1 2 23 1 2 24 1 2 25 1 3 4 1 3 5 1 3 6 1 3 7 1 3 8 1 3 9 1 3 10 1 3 11 1 3 12 1 3 13 1 3 14 1 3 15 1 3 16 1 3 17 1 3 18 1 3 19 1 3 20 1 3 21 1 3 22 1 3 23 1 3 24 1 3 25 1 4 5 1 4 6 1 4 7 1 4 8 1 4 9 1 4 10 1 4 11 1 4 12 1 4 13 1 4 14 1 4 15 1 4 16 1 4 17 1 4 18 1 4 19 1 4 20 1 4 21 1 4 22 1 4 23 1 4 24 1 4 25 1 5 6 1 5 7 1 5 8 1 5 9 1 5 10 1 5 11 1 5 12 1 5 13 1 5 14 1 5 15 1 5 16 1 5 17 1 5 18 1 5 19 1 5 20 1 5 21 1 5 22 1 5 23 1 5 24 1 5 25 1 6 7 1 6 8 1 6 9 1 6 10 1 6 11 1 6 12 1 6 13 1 6 14 1 6 15 1 6 16 1 6 17 1 6 18 1 6 19 1 6 20 1 6 21 1 6 22 1 6 23 1 6 24 1 6 25 1 7 8 1 7 9 1 7 10 1 7 11 1 7 12 1 7 13 1 7 14 1 7 15 1 7 16 1 7 17 1 7 18 1 7 19 1 7 20 1 7 21 1 7 22 1 7 23 1 7 24 1 7 25 1 8 9 1 8 10 1 8 11 1 8 12 1 8 13 1 8 14 1 8 15 1 8 16 1 8 17 1 8 18 1 8 19 1 8 20 1 8 21 1 8 22 1 8 23 1 8 24 1 8 25 1 9 10 1 9 11 1 9 12 1 9 13 1 9 14 1 9 15 1 9 16 1 9 17 1 9 18 1 9 19 1 9 20 1 9 21 1 9 22 1 9 23 1 9 24 1 9 25 1 10 11 1 10 12 1 10 13 1 10 14 1 10 15 1 10 16 1 10 17 1 10 18 1 10 19 1 10 20 1 10 21 1 10 22 1 10 23 1 10 24 1 10 25 1 11 12 1 11 13 1 11 14 1 11 15 1 11 16 1 11 17 1 11 18 1 11 19 1 11 20 1 11 21 1 11 22 1 11 23 1 11 24 1 11 25 1 12 13 1 12 14 1 12 15 1 12 16 1 12 17 1 12 18 1 12 19 1 12 20 1 12 21 1 12 22 1 12 23 1 12 24 1 12 25 1 13 14 1 13 15 1 13 16 1 13 17 1 13 18 1 13 19 1 13 20 1 13 21 1 13 22 1 13 23 1 13 24 1 13 25 1 14 15 1 14 16 1 14 17 1 14 18 1 14 19 1 14 20 1 14 21 1 14 22 1 14 23 1 14 24 1 14 25 1 15 16 1 15 17 1 15 18 1 15 19 1 15 20 1 15 21 1 15 22 1 15 23 1 15 24 1 15 25 1 16 17 1 16 18 1 16 19 1 16 20 1 16 21 1 16 22 1 16 23 1 16 24 1 16 25 1 17 18 1 17 19 1 17 20 1 17 21 1 17 22 1 17 23 1 17 24 1 17 25 1 18 19 1 18 20 1 18 21 1 18 22 1 18 23 1 18 24 1 18 25 1 19 20 1 19 21 1 19 22 1 19 23 1 19 24 1 19 25 1 20 21 1 20 22 1 20 23 1 20 24 1 20 25 1 21 22 1 21 23 1 21 24 1 21 25 1 22 23 1 22 24 1 22 25 1 23 24 1 23 25 1 24 25 2 3 4 2 3 5 2 3 6 2 3 7 2 3 8 2 3 9 2 3 10 2 3 11 2 3 12 2 3 13 2 3 14 2 3 15 2 3 16 2 3 17 2 3 18 2 3 19 2 3 20 2 3 21 2 3 22 2 3 23 2 3 24 2 3 25 2 4 5 2 4 6 2 4 7 2 4 8 2 4 9 2 4 10 2 4 11 2 4 12 2 4 13 2 4 14 2 4 15 2 4 16 2 4 17 2 4 18 2 4 19 2 4 20 2 4 21 2 4 22 2 4 23 2 4 24 2 4 25 2 5 6 2 5 7 2 5 8 2 5 9 2 5 10 2 5 11 2 5 12 2 5 13 2 5 14 2 5 15 2 5 16 2 5 17 2 5 18 2 5 19 2 5 20 2 5 21 2 5 22 2 5 23 2 5 24 2 5 25 2 6 7 2 6 8 2 6 9 2 6 10 2 6 11 2 6 12 2 6 13 2 6 14 2 6 15 2 6 16 2 6 17 2 6 18 2 6 19 2 6 20 2 6 21 2 6 22 2 6 23 2 6 24 2 6 25 2 7 8 2 7 9 2 7 10 2 7 11 2 7 12 2 7 13 2 7 14 2 7 15 2 7 16 2 7 17 2 7 18 2 7 19 2 7 20 2 7 21 2 7 22 2 7 23 2 7 24 2 7 25 2 8 9 2 8 10 2 8 11 2 8 12 2 8 13 2 8 14 2 8 15 2 8 16 2 8 17 2 8 18 2 8 19 2 8 20 2 8 21 2 8 22 2 8 23 2 8 24 2 8 25 2 9 10 2 9 11 2 9 12 2 9 13 2 9 14 2 9 15 2 9 16 2 9 17 2 9 18 2 9 19 2 9 20 2 9 21 2 9 22 2 9 23 2 9 24 2 9 25 2 10 11 2 10 12 2 10 13 2 10 14 2 10 15 2 10 16 2 10 17 2 10 18 2 10 19 2 10 20 2 10 21 2 10 22 2 10 23 2 10 24 2 10 25 2 11 12 2 11 13 2 11 14 2 11 15 2 11 16 2 11 17 2 11 18 2 11 19 2 11 20 2 11 21 2 11 22 2 11 23 2 11 24 2 11 25 2 12 13 2 12 14 2 12 15 2 12 16 2 12 17 2 12 18 2 12 19 2 12 20 2 12 21 2 12 22 2 12 23 2 12 24 2 12 25 2 13 14 2 13 15 2 13 16 2 13 17 2 13 18 2 13 19 2 13 20 2 13 21 2 13 22 2 13 23 2 13 24 2 13 25 2 14 15 2 14 16 2 14 17 2 14 18 2 14 19 2 14 20 2 14 21 2 14 22 2 14 23 2 14 24 2 14 25 2 15 16 2 15 17 2 15 18 2 15 19 2 15 20 2 15 21 2 15 22 2 15 23 2 15 24 2 15 25 2 16 17 2 16 18 2 16 19 2 16 20 2 16 21 2 16 22 2 16 23 2 16 24 2 16 25 2 17 18 2 17 19 2 17 20 2 17 21 2 17 22 2 17 23 2 17 24 2 17 25 2 18 19 2 18 20 2 18 21 2 18 22 2 18 23 2 18 24 2 18 25 2 19 20 2 19 21 2 19 22 2 19 23 2 19 24 2 19 25 2 20 21 2 20 22 2 20 23 2 20 24 2 20 25 2 21 22 2 21 23 2 21 24 2 21 25 2 22 23 2 22 24 2 22 25...

Output argument "moves" (and maybe others) not assigned during call to "lights_out_1". Error in Test2 (line 6) moves = lights_out_1(board); %should be [1 13 25]

3   Fail
board = [1 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 1 0 0 0 1 0 0 0 0]; moves = lights_out_1(board); %should be [2 3 4] b1 = diag(ones(1,5),0) + diag(ones(1,4),1) + diag(ones(1,4),-1); b2 = eye(5); b3 = zeros(5); b_map = [b1,b2,b3,b3,b3;b2,b1,b2,b3,b3;b3,b2,b1,b2,b3;b3,b3,b2,b1,b2;b3,b3,b3,b2,b1]; for i = 1:numel(moves) board = mod(board + reshape(b_map(moves(i),:),[5,5]),2); %remove semicolon to display progress end assert(sum(abs(board(:)))==0) assert(numel(moves)==3)

ans = 1 2 3 1 2 4 1 2 5 1 2 6 1 2 7 1 2 8 1 2 9 1 2 10 1 2 11 1 2 12 1 2 13 1 2 14 1 2 15 1 2 16 1 2 17 1 2 18 1 2 19 1 2 20 1 2 21 1 2 22 1 2 23 1 2 24 1 2 25 1 3 4 1 3 5 1 3 6 1 3 7 1 3 8 1 3 9 1 3 10 1 3 11 1 3 12 1 3 13 1 3 14 1 3 15 1 3 16 1 3 17 1 3 18 1 3 19 1 3 20 1 3 21 1 3 22 1 3 23 1 3 24 1 3 25 1 4 5 1 4 6 1 4 7 1 4 8 1 4 9 1 4 10 1 4 11 1 4 12 1 4 13 1 4 14 1 4 15 1 4 16 1 4 17 1 4 18 1 4 19 1 4 20 1 4 21 1 4 22 1 4 23 1 4 24 1 4 25 1 5 6 1 5 7 1 5 8 1 5 9 1 5 10 1 5 11 1 5 12 1 5 13 1 5 14 1 5 15 1 5 16 1 5 17 1 5 18 1 5 19 1 5 20 1 5 21 1 5 22 1 5 23 1 5 24 1 5 25 1 6 7 1 6 8 1 6 9 1 6 10 1 6 11 1 6 12 1 6 13 1 6 14 1 6 15 1 6 16 1 6 17 1 6 18 1 6 19 1 6 20 1 6 21 1 6 22 1 6 23 1 6 24 1 6 25 1 7 8 1 7 9 1 7 10 1 7 11 1 7 12 1 7 13 1 7 14 1 7 15 1 7 16 1 7 17 1 7 18 1 7 19 1 7 20 1 7 21 1 7 22 1 7 23 1 7 24 1 7 25 1 8 9 1 8 10 1 8 11 1 8 12 1 8 13 1 8 14 1 8 15 1 8 16 1 8 17 1 8 18 1 8 19 1 8 20 1 8 21 1 8 22 1 8 23 1 8 24 1 8 25 1 9 10 1 9 11 1 9 12 1 9 13 1 9 14 1 9 15 1 9 16 1 9 17 1 9 18 1 9 19 1 9 20 1 9 21 1 9 22 1 9 23 1 9 24 1 9 25 1 10 11 1 10 12 1 10 13 1 10 14 1 10 15 1 10 16 1 10 17 1 10 18 1 10 19 1 10 20 1 10 21 1 10 22 1 10 23 1 10 24 1 10 25 1 11 12 1 11 13 1 11 14 1 11 15 1 11 16 1 11 17 1 11 18 1 11 19 1 11 20 1 11 21 1 11 22 1 11 23 1 11 24 1 11 25 1 12 13 1 12 14 1 12 15 1 12 16 1 12 17 1 12 18 1 12 19 1 12 20 1 12 21 1 12 22 1 12 23 1 12 24 1 12 25 1 13 14 1 13 15 1 13 16 1 13 17 1 13 18 1 13 19 1 13 20 1 13 21 1 13 22 1 13 23 1 13 24 1 13 25 1 14 15 1 14 16 1 14 17 1 14 18 1 14 19 1 14 20 1 14 21 1 14 22 1 14 23 1 14 24 1 14 25 1 15 16 1 15 17 1 15 18 1 15 19 1 15 20 1 15 21 1 15 22 1 15 23 1 15 24 1 15 25 1 16 17 1 16 18 1 16 19 1 16 20 1 16 21 1 16 22 1 16 23 1 16 24 1 16 25 1 17 18 1 17 19 1 17 20 1 17 21 1 17 22 1 17 23 1 17 24 1 17 25 1 18 19 1 18 20 1 18 21 1 18 22 1 18 23 1 18 24 1 18 25 1 19 20 1 19 21 1 19 22 1 19 23 1 19 24 1 19 25 1 20 21 1 20 22 1 20 23 1 20 24 1 20 25 1 21 22 1 21 23 1 21 24 1 21 25 1 22 23 1 22 24 1 22 25 1 23 24 1 23 25 1 24 25 2 3 4 2 3 5 2 3 6 2 3 7 2 3 8 2 3 9 2 3 10 2 3 11 2 3 12 2 3 13 2 3 14 2 3 15 2 3 16 2 3 17 2 3 18 2 3 19 2 3 20 2 3 21 2 3 22 2 3 23 2 3 24 2 3 25 2 4 5 2 4 6 2 4 7 2 4 8 2 4 9 2 4 10 2 4 11 2 4 12 2 4 13 2 4 14 2 4 15 2 4 16 2 4 17 2 4 18 2 4 19 2 4 20 2 4 21 2 4 22 2 4 23 2 4 24 2 4 25 2 5 6 2 5 7 2 5 8 2 5 9 2 5 10 2 5 11 2 5 12 2 5 13 2 5 14 2 5 15 2 5 16 2 5 17 2 5 18 2 5 19 2 5 20 2 5 21 2 5 22 2 5 23 2 5 24 2 5 25 2 6 7 2 6 8 2 6 9 2 6 10 2 6 11 2 6 12 2 6 13 2 6 14 2 6 15 2 6 16 2 6 17 2 6 18 2 6 19 2 6 20 2 6 21 2 6 22 2 6 23 2 6 24 2 6 25 2 7 8 2 7 9 2 7 10 2 7 11 2 7 12 2 7 13 2 7 14 2 7 15 2 7 16 2 7 17 2 7 18 2 7 19 2 7 20 2 7 21 2 7 22 2 7 23 2 7 24 2 7 25 2 8 9 2 8 10 2 8 11 2 8 12 2 8 13 2 8 14 2 8 15 2 8 16 2 8 17 2 8 18 2 8 19 2 8 20 2 8 21 2 8 22 2 8 23 2 8 24 2 8 25 2 9 10 2 9 11 2 9 12 2 9 13 2 9 14 2 9 15 2 9 16 2 9 17 2 9 18 2 9 19 2 9 20 2 9 21 2 9 22 2 9 23 2 9 24 2 9 25 2 10 11 2 10 12 2 10 13 2 10 14 2 10 15 2 10 16 2 10 17 2 10 18 2 10 19 2 10 20 2 10 21 2 10 22 2 10 23 2 10 24 2 10 25 2 11 12 2 11 13 2 11 14 2 11 15 2 11 16 2 11 17 2 11 18 2 11 19 2 11 20 2 11 21 2 11 22 2 11 23 2 11 24 2 11 25 2 12 13 2 12 14 2 12 15 2 12 16 2 12 17 2 12 18 2 12 19 2 12 20 2 12 21 2 12 22 2 12 23 2 12 24 2 12 25 2 13 14 2 13 15 2 13 16 2 13 17 2 13 18 2 13 19 2 13 20 2 13 21 2 13 22 2 13 23 2 13 24 2 13 25 2 14 15 2 14 16 2 14 17 2 14 18 2 14 19 2 14 20 2 14 21 2 14 22 2 14 23 2 14 24 2 14 25 2 15 16 2 15 17 2 15 18 2 15 19 2 15 20 2 15 21 2 15 22 2 15 23 2 15 24 2 15 25 2 16 17 2 16 18 2 16 19 2 16 20 2 16 21 2 16 22 2 16 23 2 16 24 2 16 25 2 17 18 2 17 19 2 17 20 2 17 21 2 17 22 2 17 23 2 17 24 2 17 25 2 18 19 2 18 20 2 18 21 2 18 22 2 18 23 2 18 24 2 18 25 2 19 20 2 19 21 2 19 22 2 19 23 2 19 24 2 19 25 2 20 21 2 20 22 2 20 23 2 20 24 2 20 25 2 21 22 2 21 23 2 21 24 2 21 25 2 22 23 2 22 24 2 22 25...

Output argument "moves" (and maybe others) not assigned during call to "lights_out_1". Error in Test3 (line 6) moves = lights_out_1(board); %should be [2 3 4]

4   Fail
board = [0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 0 0 0 0 0 0 0 0 0 0]; moves = lights_out_1(board); %should be [7 12 17] b1 = diag(ones(1,5),0) + diag(ones(1,4),1) + diag(ones(1,4),-1); b2 = eye(5); b3 = zeros(5); b_map = [b1,b2,b3,b3,b3;b2,b1,b2,b3,b3;b3,b2,b1,b2,b3;b3,b3,b2,b1,b2;b3,b3,b3,b2,b1]; for i = 1:numel(moves) board = mod(board + reshape(b_map(moves(i),:),[5,5]),2); %remove semicolon to display progress end assert(sum(abs(board(:)))==0) assert(numel(moves)==3)

ans = 1 2 3 1 2 4 1 2 5 1 2 6 1 2 7 1 2 8 1 2 9 1 2 10 1 2 11 1 2 12 1 2 13 1 2 14 1 2 15 1 2 16 1 2 17 1 2 18 1 2 19 1 2 20 1 2 21 1 2 22 1 2 23 1 2 24 1 2 25 1 3 4 1 3 5 1 3 6 1 3 7 1 3 8 1 3 9 1 3 10 1 3 11 1 3 12 1 3 13 1 3 14 1 3 15 1 3 16 1 3 17 1 3 18 1 3 19 1 3 20 1 3 21 1 3 22 1 3 23 1 3 24 1 3 25 1 4 5 1 4 6 1 4 7 1 4 8 1 4 9 1 4 10 1 4 11 1 4 12 1 4 13 1 4 14 1 4 15 1 4 16 1 4 17 1 4 18 1 4 19 1 4 20 1 4 21 1 4 22 1 4 23 1 4 24 1 4 25 1 5 6 1 5 7 1 5 8 1 5 9 1 5 10 1 5 11 1 5 12 1 5 13 1 5 14 1 5 15 1 5 16 1 5 17 1 5 18 1 5 19 1 5 20 1 5 21 1 5 22 1 5 23 1 5 24 1 5 25 1 6 7 1 6 8 1 6 9 1 6 10 1 6 11 1 6 12 1 6 13 1 6 14 1 6 15 1 6 16 1 6 17 1 6 18 1 6 19 1 6 20 1 6 21 1 6 22 1 6 23 1 6 24 1 6 25 1 7 8 1 7 9 1 7 10 1 7 11 1 7 12 1 7 13 1 7 14 1 7 15 1 7 16 1 7 17 1 7 18 1 7 19 1 7 20 1 7 21 1 7 22 1 7 23 1 7 24 1 7 25 1 8 9 1 8 10 1 8 11 1 8 12 1 8 13 1 8 14 1 8 15 1 8 16 1 8 17 1 8 18 1 8 19 1 8 20 1 8 21 1 8 22 1 8 23 1 8 24 1 8 25 1 9 10 1 9 11 1 9 12 1 9 13 1 9 14 1 9 15 1 9 16 1 9 17 1 9 18 1 9 19 1 9 20 1 9 21 1 9 22 1 9 23 1 9 24 1 9 25 1 10 11 1 10 12 1 10 13 1 10 14 1 10 15 1 10 16 1 10 17 1 10 18 1 10 19 1 10 20 1 10 21 1 10 22 1 10 23 1 10 24 1 10 25 1 11 12 1 11 13 1 11 14 1 11 15 1 11 16 1 11 17 1 11 18 1 11 19 1 11 20 1 11 21 1 11 22 1 11 23 1 11 24 1 11 25 1 12 13 1 12 14 1 12 15 1 12 16 1 12 17 1 12 18 1 12 19 1 12 20 1 12 21 1 12 22 1 12 23 1 12 24 1 12 25 1 13 14 1 13 15 1 13 16 1 13 17 1 13 18 1 13 19 1 13 20 1 13 21 1 13 22 1 13 23 1 13 24 1 13 25 1 14 15 1 14 16 1 14 17 1 14 18 1 14 19 1 14 20 1 14 21 1 14 22 1 14 23 1 14 24 1 14 25 1 15 16 1 15 17 1 15 18 1 15 19 1 15 20 1 15 21 1 15 22 1 15 23 1 15 24 1 15 25 1 16 17 1 16 18 1 16 19 1 16 20 1 16 21 1 16 22 1 16 23 1 16 24 1 16 25 1 17 18 1 17 19 1 17 20 1 17 21 1 17 22 1 17 23 1 17 24 1 17 25 1 18 19 1 18 20 1 18 21 1 18 22 1 18 23 1 18 24 1 18 25 1 19 20 1 19 21 1 19 22 1 19 23 1 19 24 1 19 25 1 20 21 1 20 22 1 20 23 1 20 24 1 20 25 1 21 22 1 21 23 1 21 24 1 21 25 1 22 23 1 22 24 1 22 25 1 23 24 1 23 25 1 24 25 2 3 4 2 3 5 2 3 6 2 3 7 2 3 8 2 3 9 2 3 10 2 3 11 2 3 12 2 3 13 2 3 14 2 3 15 2 3 16 2 3 17 2 3 18 2 3 19 2 3 20 2 3 21 2 3 22 2 3 23 2 3 24 2 3 25 2 4 5 2 4 6 2 4 7 2 4 8 2 4 9 2 4 10 2 4 11 2 4 12 2 4 13 2 4 14 2 4 15 2 4 16 2 4 17 2 4 18 2 4 19 2 4 20 2 4 21 2 4 22 2 4 23 2 4 24 2 4 25 2 5 6 2 5 7 2 5 8 2 5 9 2 5 10 2 5 11 2 5 12 2 5 13 2 5 14 2 5 15 2 5 16 2 5 17 2 5 18 2 5 19 2 5 20 2 5 21 2 5 22 2 5 23 2 5 24 2 5 25 2 6 7 2 6 8 2 6 9 2 6 10 2 6 11 2 6 12 2 6 13 2 6 14 2 6 15 2 6 16 2 6 17 2 6 18 2 6 19 2 6 20 2 6 21 2 6 22 2 6 23 2 6 24 2 6 25 2 7 8 2 7 9 2 7 10 2 7 11 2 7 12 2 7 13 2 7 14 2 7 15 2 7 16 2 7 17 2 7 18 2 7 19 2 7 20 2 7 21 2 7 22 2 7 23 2 7 24 2 7 25 2 8 9 2 8 10 2 8 11 2 8 12 2 8 13 2 8 14 2 8 15 2 8 16 2 8 17 2 8 18 2 8 19 2 8 20 2 8 21 2 8 22 2 8 23 2 8 24 2 8 25 2 9 10 2 9 11 2 9 12 2 9 13 2 9 14 2 9 15 2 9 16 2 9 17 2 9 18 2 9 19 2 9 20 2 9 21 2 9 22 2 9 23 2 9 24 2 9 25 2 10 11 2 10 12 2 10 13 2 10 14 2 10 15 2 10 16 2 10 17 2 10 18 2 10 19 2 10 20 2 10 21 2 10 22 2 10 23 2 10 24 2 10 25 2 11 12 2 11 13 2 11 14 2 11 15 2 11 16 2 11 17 2 11 18 2 11 19 2 11 20 2 11 21 2 11 22 2 11 23 2 11 24 2 11 25 2 12 13 2 12 14 2 12 15 2 12 16 2 12 17 2 12 18 2 12 19 2 12 20 2 12 21 2 12 22 2 12 23 2 12 24 2 12 25 2 13 14 2 13 15 2 13 16 2 13 17 2 13 18 2 13 19 2 13 20 2 13 21 2 13 22 2 13 23 2 13 24 2 13 25 2 14 15 2 14 16 2 14 17 2 14 18 2 14 19 2 14 20 2 14 21 2 14 22 2 14 23 2 14 24 2 14 25 2 15 16 2 15 17 2 15 18 2 15 19 2 15 20 2 15 21 2 15 22 2 15 23 2 15 24 2 15 25 2 16 17 2 16 18 2 16 19 2 16 20 2 16 21 2 16 22 2 16 23 2 16 24 2 16 25 2 17 18 2 17 19 2 17 20 2 17 21 2 17 22 2 17 23 2 17 24 2 17 25 2 18 19 2 18 20 2 18 21 2 18 22 2 18 23 2 18 24 2 18 25 2 19 20 2 19 21 2 19 22 2 19 23 2 19 24 2 19 25 2 20 21 2 20 22 2 20 23 2 20 24 2 20 25 2 21 22 2 21 23 2 21 24 2 21 25 2 22 23 2 22 24 2 22 25...

Output argument "moves" (and maybe others) not assigned during call to "lights_out_1". Error in Test4 (line 6) moves = lights_out_1(board); %should be [7 12 17]

5   Fail
board = [0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 0 1 0 0]; moves = lights_out_1(board); %you're on your own now b1 = diag(ones(1,5),0) + diag(ones(1,4),1) + diag(ones(1,4),-1); b2 = eye(5); b3 = zeros(5); b_map = [b1,b2,b3,b3,b3;b2,b1,b2,b3,b3;b3,b2,b1,b2,b3;b3,b3,b2,b1,b2;b3,b3,b3,b2,b1]; for i = 1:numel(moves) board = mod(board + reshape(b_map(moves(i),:),[5,5]),2); %remove semicolon to display progress end assert(sum(abs(board(:)))==0) assert(numel(moves)==3)

ans = 1 2 3 1 2 4 1 2 5 1 2 6 1 2 7 1 2 8 1 2 9 1 2 10 1 2 11 1 2 12 1 2 13 1 2 14 1 2 15 1 2 16 1 2 17 1 2 18 1 2 19 1 2 20 1 2 21 1 2 22 1 2 23 1 2 24 1 2 25 1 3 4 1 3 5 1 3 6 1 3 7 1 3 8 1 3 9 1 3 10 1 3 11 1 3 12 1 3 13 1 3 14 1 3 15 1 3 16 1 3 17 1 3 18 1 3 19 1 3 20 1 3 21 1 3 22 1 3 23 1 3 24 1 3 25 1 4 5 1 4 6 1 4 7 1 4 8 1 4 9 1 4 10 1 4 11 1 4 12 1 4 13 1 4 14 1 4 15 1 4 16 1 4 17 1 4 18 1 4 19 1 4 20 1 4 21 1 4 22 1 4 23 1 4 24 1 4 25 1 5 6 1 5 7 1 5 8 1 5 9 1 5 10 1 5 11 1 5 12 1 5 13 1 5 14 1 5 15 1 5 16 1 5 17 1 5 18 1 5 19 1 5 20 1 5 21 1 5 22 1 5 23 1 5 24 1 5 25 1 6 7 1 6 8 1 6 9 1 6 10 1 6 11 1 6 12 1 6 13 1 6 14 1 6 15 1 6 16 1 6 17 1 6 18 1 6 19 1 6 20 1 6 21 1 6 22 1 6 23 1 6 24 1 6 25 1 7 8 1 7 9 1 7 10 1 7 11 1 7 12 1 7 13 1 7 14 1 7 15 1 7 16 1 7 17 1 7 18 1 7 19 1 7 20 1 7 21 1 7 22 1 7 23 1 7 24 1 7 25 1 8 9 1 8 10 1 8 11 1 8 12 1 8 13 1 8 14 1 8 15 1 8 16 1 8 17 1 8 18 1 8 19 1 8 20 1 8 21 1 8 22 1 8 23 1 8 24 1 8 25 1 9 10 1 9 11 1 9 12 1 9 13 1 9 14 1 9 15 1 9 16 1 9 17 1 9 18 1 9 19 1 9 20 1 9 21 1 9 22 1 9 23 1 9 24 1 9 25 1 10 11 1 10 12 1 10 13 1 10 14 1 10 15 1 10 16 1 10 17 1 10 18 1 10 19 1 10 20 1 10 21 1 10 22 1 10 23 1 10 24 1 10 25 1 11 12 1 11 13 1 11 14 1 11 15 1 11 16 1 11 17 1 11 18 1 11 19 1 11 20 1 11 21 1 11 22 1 11 23 1 11 24 1 11 25 1 12 13 1 12 14 1 12 15 1 12 16 1 12 17 1 12 18 1 12 19 1 12 20 1 12 21 1 12 22 1 12 23 1 12 24 1 12 25 1 13 14 1 13 15 1 13 16 1 13 17 1 13 18 1 13 19 1 13 20 1 13 21 1 13 22 1 13 23 1 13 24 1 13 25 1 14 15 1 14 16 1 14 17 1 14 18 1 14 19 1 14 20 1 14 21 1 14 22 1 14 23 1 14 24 1 14 25 1 15 16 1 15 17 1 15 18 1 15 19 1 15 20 1 15 21 1 15 22 1 15 23 1 15 24 1 15 25 1 16 17 1 16 18 1 16 19 1 16 20 1 16 21 1 16 22 1 16 23 1 16 24 1 16 25 1 17 18 1 17 19 1 17 20 1 17 21 1 17 22 1 17 23 1 17 24 1 17 25 1 18 19 1 18 20 1 18 21 1 18 22 1 18 23 1 18 24 1 18 25 1 19 20 1 19 21 1 19 22 1 19 23 1 19 24 1 19 25 1 20 21 1 20 22 1 20 23 1 20 24 1 20 25 1 21 22 1 21 23 1 21 24 1 21 25 1 22 23 1 22 24 1 22 25 1 23 24 1 23 25 1 24 25 2 3 4 2 3 5 2 3 6 2 3 7 2 3 8 2 3 9 2 3 10 2 3 11 2 3 12 2 3 13 2 3 14 2 3 15 2 3 16 2 3 17 2 3 18 2 3 19 2 3 20 2 3 21 2 3 22 2 3 23 2 3 24 2 3 25 2 4 5 2 4 6 2 4 7 2 4 8 2 4 9 2 4 10 2 4 11 2 4 12 2 4 13 2 4 14 2 4 15 2 4 16 2 4 17 2 4 18 2 4 19 2 4 20 2 4 21 2 4 22 2 4 23 2 4 24 2 4 25 2 5 6 2 5 7 2 5 8 2 5 9 2 5 10 2 5 11 2 5 12 2 5 13 2 5 14 2 5 15 2 5 16 2 5 17 2 5 18 2 5 19 2 5 20 2 5 21 2 5 22 2 5 23 2 5 24 2 5 25 2 6 7 2 6 8 2 6 9 2 6 10 2 6 11 2 6 12 2 6 13 2 6 14 2 6 15 2 6 16 2 6 17 2 6 18 2 6 19 2 6 20 2 6 21 2 6 22 2 6 23 2 6 24 2 6 25 2 7 8 2 7 9 2 7 10 2 7 11 2 7 12 2 7 13 2 7 14 2 7 15 2 7 16 2 7 17 2 7 18 2 7 19 2 7 20 2 7 21 2 7 22 2 7 23 2 7 24 2 7 25 2 8 9 2 8 10 2 8 11 2 8 12 2 8 13 2 8 14 2 8 15 2 8 16 2 8 17 2 8 18 2 8 19 2 8 20 2 8 21 2 8 22 2 8 23 2 8 24 2 8 25 2 9 10 2 9 11 2 9 12 2 9 13 2 9 14 2 9 15 2 9 16 2 9 17 2 9 18 2 9 19 2 9 20 2 9 21 2 9 22 2 9 23 2 9 24 2 9 25 2 10 11 2 10 12 2 10 13 2 10 14 2 10 15 2 10 16 2 10 17 2 10 18 2 10 19 2 10 20 2 10 21 2 10 22 2 10 23 2 10 24 2 10 25 2 11 12 2 11 13 2 11 14 2 11 15 2 11 16 2 11 17 2 11 18 2 11 19 2 11 20 2 11 21 2 11 22 2 11 23 2 11 24 2 11 25 2 12 13 2 12 14 2 12 15 2 12 16 2 12 17 2 12 18 2 12 19 2 12 20 2 12 21 2 12 22 2 12 23 2 12 24 2 12 25 2 13 14 2 13 15 2 13 16 2 13 17 2 13 18 2 13 19 2 13 20 2 13 21 2 13 22 2 13 23 2 13 24 2 13 25 2 14 15 2 14 16 2 14 17 2 14 18 2 14 19 2 14 20 2 14 21 2 14 22 2 14 23 2 14 24 2 14 25 2 15 16 2 15 17 2 15 18 2 15 19 2 15 20 2 15 21 2 15 22 2 15 23 2 15 24 2 15 25 2 16 17 2 16 18 2 16 19 2 16 20 2 16 21 2 16 22 2 16 23 2 16 24 2 16 25 2 17 18 2 17 19 2 17 20 2 17 21 2 17 22 2 17 23 2 17 24 2 17 25 2 18 19 2 18 20 2 18 21 2 18 22 2 18 23 2 18 24 2 18 25 2 19 20 2 19 21 2 19 22 2 19 23 2 19 24 2 19 25 2 20 21 2 20 22 2 20 23 2 20 24 2 20 25 2 21 22 2 21 23 2 21 24 2 21 25 2 22 23 2 22 24 2 22 25...

Output argument "moves" (and maybe others) not assigned during call to "lights_out_1". Error in Test5 (line 6) moves = lights_out_1(board); %you're on your own now

6   Fail
board = [0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 1 1 1 1 1 0 0 1 0 0]; moves = lights_out_1(board); b1 = diag(ones(1,5),0) + diag(ones(1,4),1) + diag(ones(1,4),-1); b2 = eye(5); b3 = zeros(5); b_map = [b1,b2,b3,b3,b3;b2,b1,b2,b3,b3;b3,b2,b1,b2,b3;b3,b3,b2,b1,b2;b3,b3,b3,b2,b1]; for i = 1:numel(moves) board = mod(board + reshape(b_map(moves(i),:),[5,5]),2); %remove semicolon to display progress end assert(sum(abs(board(:)))==0) assert(numel(moves)==3)

ans = 1 2 3 1 2 4 1 2 5 1 2 6 1 2 7 1 2 8 1 2 9 1 2 10 1 2 11 1 2 12 1 2 13 1 2 14 1 2 15 1 2 16 1 2 17 1 2 18 1 2 19 1 2 20 1 2 21 1 2 22 1 2 23 1 2 24 1 2 25 1 3 4 1 3 5 1 3 6 1 3 7 1 3 8 1 3 9 1 3 10 1 3 11 1 3 12 1 3 13 1 3 14 1 3 15 1 3 16 1 3 17 1 3 18 1 3 19 1 3 20 1 3 21 1 3 22 1 3 23 1 3 24 1 3 25 1 4 5 1 4 6 1 4 7 1 4 8 1 4 9 1 4 10 1 4 11 1 4 12 1 4 13 1 4 14 1 4 15 1 4 16 1 4 17 1 4 18 1 4 19 1 4 20 1 4 21 1 4 22 1 4 23 1 4 24 1 4 25 1 5 6 1 5 7 1 5 8 1 5 9 1 5 10 1 5 11 1 5 12 1 5 13 1 5 14 1 5 15 1 5 16 1 5 17 1 5 18 1 5 19 1 5 20 1 5 21 1 5 22 1 5 23 1 5 24 1 5 25 1 6 7 1 6 8 1 6 9 1 6 10 1 6 11 1 6 12 1 6 13 1 6 14 1 6 15 1 6 16 1 6 17 1 6 18 1 6 19 1 6 20 1 6 21 1 6 22 1 6 23 1 6 24 1 6 25 1 7 8 1 7 9 1 7 10 1 7 11 1 7 12 1 7 13 1 7 14 1 7 15 1 7 16 1 7 17 1 7 18 1 7 19 1 7 20 1 7 21 1 7 22 1 7 23 1 7 24 1 7 25 1 8 9 1 8 10 1 8 11 1 8 12 1 8 13 1 8 14 1 8 15 1 8 16 1 8 17 1 8 18 1 8 19 1 8 20 1 8 21 1 8 22 1 8 23 1 8 24 1 8 25 1 9 10 1 9 11 1 9 12 1 9 13 1 9 14 1 9 15 1 9 16 1 9 17 1 9 18 1 9 19 1 9 20 1 9 21 1 9 22 1 9 23 1 9 24 1 9 25 1 10 11 1 10 12 1 10 13 1 10 14 1 10 15 1 10 16 1 10 17 1 10 18 1 10 19 1 10 20 1 10 21 1 10 22 1 10 23 1 10 24 1 10 25 1 11 12 1 11 13 1 11 14 1 11 15 1 11 16 1 11 17 1 11 18 1 11 19 1 11 20 1 11 21 1 11 22 1 11 23 1 11 24 1 11 25 1 12 13 1 12 14 1 12 15 1 12 16 1 12 17 1 12 18 1 12 19 1 12 20 1 12 21 1 12 22 1 12 23 1 12 24 1 12 25 1 13 14 1 13 15 1 13 16 1 13 17 1 13 18 1 13 19 1 13 20 1 13 21 1 13 22 1 13 23 1 13 24 1 13 25 1 14 15 1 14 16 1 14 17 1 14 18 1 14 19 1 14 20 1 14 21 1 14 22 1 14 23 1 14 24 1 14 25 1 15 16 1 15 17 1 15 18 1 15 19 1 15 20 1 15 21 1 15 22 1 15 23 1 15 24 1 15 25 1 16 17 1 16 18 1 16 19 1 16 20 1 16 21 1 16 22 1 16 23 1 16 24 1 16 25 1 17 18 1 17 19 1 17 20 1 17 21 1 17 22 1 17 23 1 17 24 1 17 25 1 18 19 1 18 20 1 18 21 1 18 22 1 18 23 1 18 24 1 18 25 1 19 20 1 19 21 1 19 22 1 19 23 1 19 24 1 19 25 1 20 21 1 20 22 1 20 23 1 20 24 1 20 25 1 21 22 1 21 23 1 21 24 1 21 25 1 22 23 1 22 24 1 22 25 1 23 24 1 23 25 1 24 25 2 3 4 2 3 5 2 3 6 2 3 7 2 3 8 2 3 9 2 3 10 2 3 11 2 3 12 2 3 13 2 3 14 2 3 15 2 3 16 2 3 17 2 3 18 2 3 19 2 3 20 2 3 21 2 3 22 2 3 23 2 3 24 2 3 25 2 4 5 2 4 6 2 4 7 2 4 8 2 4 9 2 4 10 2 4 11 2 4 12 2 4 13 2 4 14 2 4 15 2 4 16 2 4 17 2 4 18 2 4 19 2 4 20 2 4 21 2 4 22 2 4 23 2 4 24 2 4 25 2 5 6 2 5 7 2 5 8 2 5 9 2 5 10 2 5 11 2 5 12 2 5 13 2 5 14 2 5 15 2 5 16 2 5 17 2 5 18 2 5 19 2 5 20 2 5 21 2 5 22 2 5 23 2 5 24 2 5 25 2 6 7 2 6 8 2 6 9 2 6 10 2 6 11 2 6 12 2 6 13 2 6 14 2 6 15 2 6 16 2 6 17 2 6 18 2 6 19 2 6 20 2 6 21 2 6 22 2 6 23 2 6 24 2 6 25 2 7 8 2 7 9 2 7 10 2 7 11 2 7 12 2 7 13 2 7 14 2 7 15 2 7 16 2 7 17 2 7 18 2 7 19 2 7 20 2 7 21 2 7 22 2 7 23 2 7 24 2 7 25 2 8 9 2 8 10 2 8 11 2 8 12 2 8 13 2 8 14 2 8 15 2 8 16 2 8 17 2 8 18 2 8 19 2 8 20 2 8 21 2 8 22 2 8 23 2 8 24 2 8 25 2 9 10 2 9 11 2 9 12 2 9 13 2 9 14 2 9 15 2 9 16 2 9 17 2 9 18 2 9 19 2 9 20 2 9 21 2 9 22 2 9 23 2 9 24 2 9 25 2 10 11 2 10 12 2 10 13 2 10 14 2 10 15 2 10 16 2 10 17 2 10 18 2 10 19 2 10 20 2 10 21 2 10 22 2 10 23 2 10 24 2 10 25 2 11 12 2 11 13 2 11 14 2 11 15 2 11 16 2 11 17 2 11 18 2 11 19 2 11 20 2 11 21 2 11 22 2 11 23 2 11 24 2 11 25 2 12 13 2 12 14 2 12 15 2 12 16 2 12 17 2 12 18 2 12 19 2 12 20 2 12 21 2 12 22 2 12 23 2 12 24 2 12 25 2 13 14 2 13 15 2 13 16 2 13 17 2 13 18 2 13 19 2 13 20 2 13 21 2 13 22 2 13 23 2 13 24 2 13 25 2 14 15 2 14 16 2 14 17 2 14 18 2 14 19 2 14 20 2 14 21 2 14 22 2 14 23 2 14 24 2 14 25 2 15 16 2 15 17 2 15 18 2 15 19 2 15 20 2 15 21 2 15 22 2 15 23 2 15 24 2 15 25 2 16 17 2 16 18 2 16 19 2 16 20 2 16 21 2 16 22 2 16 23 2 16 24 2 16 25 2 17 18 2 17 19 2 17 20 2 17 21 2 17 22 2 17 23 2 17 24 2 17 25 2 18 19 2 18 20 2 18 21 2 18 22 2 18 23 2 18 24 2 18 25 2 19 20 2 19 21 2 19 22 2 19 23 2 19 24 2 19 25 2 20 21 2 20 22 2 20 23 2 20 24 2 20 25 2 21 22 2 21 23 2 21 24 2 21 25 2 22 23 2 22 24 2 22 25...

Output argument "moves" (and maybe others) not assigned during call to "lights_out_1". Error in Test6 (line 6) moves = lights_out_1(board);

Suggested Problems

More from this Author139