just realized there are no lists, only arrays :(
This commit is contained in:
@@ -3,7 +3,7 @@ include("SortingModifiers.jl")
|
||||
struct Shape
|
||||
cubes::Set{Tuple{Int8, Int8, Int8}}
|
||||
recentCubes::Set{Tuple{Int8, Int8, Int8}}
|
||||
orderedLists::Array{List{Tuple{Int8, Int8, Int8}}}
|
||||
orderedLists::Vector{Vector{Tuple{Int8, Int8, Int8}}}
|
||||
end
|
||||
|
||||
function trypush!(S::Shape, t::Tuple{Int8, Int8, Int8})
|
||||
@@ -21,36 +21,32 @@ end
|
||||
|
||||
function getCube()
|
||||
return Shape(
|
||||
{
|
||||
(0, 0, 0)
|
||||
},
|
||||
{
|
||||
(0, 0, 0)
|
||||
},
|
||||
{(0, 0, 0)},
|
||||
{(0, 0, 0)},
|
||||
[
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0),
|
||||
(0, 0, 0)
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
[(0, 0, 0)],
|
||||
])
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user