%% Nonogram "hard" %% Note: I don't remember where I found this. And it isn't very hard. rows = 10; row_rule_len = 4; row_rules = array2d(1..rows, 1..row_rule_len, [ 0,0,0,1, 0,0,0,3, 0,0,1,3, 0,0,2,4, 0,0,1,2, 0,2,1,1, 1,1,1,1, 0,2,1,1, 0,0,2,2, 0,0,0,5 ]); cols = 10; col_rule_len = 4; col_rules = array2d(1..cols, 1..col_rule_len, [ 0,0,0,4, 0,0,1,3, 0,0,2,3, 0,0,1,2, 0,0,2,2, 0,1,1,1, 1,1,1,1, 0,1,1,1, 0,0,1,2, 0,0,0,5 ]);