From 77d3fa08ba80b0942a2c89469bd31616b0b2c30c Mon Sep 17 00:00:00 2001 From: Maxime Vorwerk Date: Fri, 25 Aug 2023 15:50:14 +0200 Subject: [PATCH] added getcube --- julia/Shape.jl | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/julia/Shape.jl b/julia/Shape.jl index be54ad0..8edaf25 100644 --- a/julia/Shape.jl +++ b/julia/Shape.jl @@ -18,3 +18,39 @@ function trypush!(S::Shape, t::Tuple{Int8, Int8, Int8}) return true end 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) + ]) +end