diff --git a/src/data/Pixels_2020/data.jl b/src/data/Pixels_2020/data.jl index 1f90a105..de9c5e8e 100644 --- a/src/data/Pixels_2020/data.jl +++ b/src/data/Pixels_2020/data.jl @@ -1,7 +1,7 @@ problem_0_0_1 = Problem("problem_0_0_1", [ IOExample(Dict{Symbol,Any}(:_arg_1 => PixelState(Bool[0 0; 0 0], (1, 1))), PixelState(Bool[0 0; 0 1], (1, 1)))]) problem_1_0_1 = Problem("problem_1_0_1", [ - IOExample(Dict{Symbol,Any}(:_arg_1 => PixelState(PixelState(Bool[0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0], (1, 1)), (1, 1))), PixelState(PixelState(Bool[0 1 0 0 0 1; 0 1 1 1 1 1; 0 1 0 0 0 1; 0 0 0 0 0 0], (1, 1)), (1, 1)))]) + IOExample(Dict{Symbol,Any}(:_arg_1 => PixelState(Bool[0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0], (1, 1))), PixelState(Bool[0 1 0 0 0 1; 0 1 1 1 1 1; 0 1 0 0 0 1; 0 0 0 0 0 0], (1, 1)))]) problem_1_0_10 = Problem("problem_1_0_10", [ IOExample(Dict{Symbol,Any}(:_arg_1 => PixelState(Bool[0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0; 0 0 0 0 0 0], (1, 1))), PixelState(Bool[0 1 1 1 1 1; 0 1 0 1 0 1; 0 1 0 0 0 1; 0 0 0 0 0 0], (1, 1)))]) problem_1_0_2 = Problem("problem_1_0_2", [ diff --git a/src/data/Pixels_2020/pixels_primitives.jl b/src/data/Pixels_2020/pixels_primitives.jl index 2b85332a..b78769c3 100644 --- a/src/data/Pixels_2020/pixels_primitives.jl +++ b/src/data/Pixels_2020/pixels_primitives.jl @@ -7,6 +7,7 @@ mutable struct PixelState matrix::Matrix{Bool} position::Tuple{Int,Int} # (x, y) PixelState(matrix::Matrix{Bool}) = new(matrix, (1, 1)) + PixelState(matrix::Matrix{Bool}, position::Tuple{Int64,Int64}) = new(matrix, position) end """