Cody

Solution 2078462

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)

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

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)

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

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)

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

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)

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

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)

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

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)

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

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