diff --git a/day17/ex1-v1.bash b/day17/ex1-v1.bash index e1a9576..afab4c6 100755 --- a/day17/ex1-v1.bash +++ b/day17/ex1-v1.bash @@ -9,28 +9,6 @@ declare -A life=() declare -i x=-1 y=-1 z=-1 res=0 declare -i maxx maxy maxz -function print_life() { - local -i x=0 y=0 z=0 foundx foundy - for ((z=0; z&2 echo "$count" } diff --git a/day17/ex1.bash b/day17/ex1.bash index d5f3a8f..bf67211 100755 --- a/day17/ex1.bash +++ b/day17/ex1.bash @@ -7,34 +7,8 @@ CMD=${0##*/} declare -A life=() declare -i x=-1 y=-1 z=-1 res=0 -declare -i max declare -i loops=6 -function print_life() { - local -i x=0 y=0 z=0 foundx foundy - for ((z=0; z