From 5795d24ab4ead0f10dec4de6e52f3050cd5bcee2 Mon Sep 17 00:00:00 2001 From: Bruno Raoult Date: Tue, 11 Oct 2022 15:13:50 +0200 Subject: [PATCH] 2020 day 24: Add hexagon page link, for my future needs ;-) --- 2020/day24/ex1.bash | 4 ++++ 2020/day24/ex2.bash | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/2020/day24/ex1.bash b/2020/day24/ex1.bash index e3842e9..3247f2b 100755 --- a/2020/day24/ex1.bash +++ b/2020/day24/ex1.bash @@ -2,6 +2,10 @@ # # ex1.bash: Advent2020 game, day 24/game 1. +# See https://www.redblobgames.com/grids/hexagons/ for hexagon possible +# representations. +# I use the "doubled-coordinate" system here : +# https://www.redblobgames.com/grids/hexagons/#coordinates-doubled CMD=${0##*/} shopt -s extglob set -o noglob diff --git a/2020/day24/ex2.bash b/2020/day24/ex2.bash index 3edbea9..2ef618f 100755 --- a/2020/day24/ex2.bash +++ b/2020/day24/ex2.bash @@ -2,6 +2,10 @@ # # ex1.bash: Advent2020 game, day 24/game 2. +# See https://www.redblobgames.com/grids/hexagons/ for hexagon possible +# representations. +# I use the "doubled-coordinate" system here : +# https://www.redblobgames.com/grids/hexagons/#coordinates-doubled CMD=${0##*/} shopt -s extglob set -o noglob