Skip to content

Commit

Permalink
Fix bug in one pixel task.
Browse files Browse the repository at this point in the history
  • Loading branch information
pwochner committed Jul 9, 2024
1 parent e320679 commit 8f27576
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/data/Pixels_2020/data.jl
Original file line number Diff line number Diff line change
@@ -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", [
Expand Down
1 change: 1 addition & 0 deletions src/data/Pixels_2020/pixels_primitives.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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

"""
Expand Down

0 comments on commit 8f27576

Please sign in to comment.