private int GetMaxLocation(HexGridLocation hex) { return(new int [] { hex.X, hex.Y, hex.Z }.Select(num => Math.Abs(num)) .Max()); }
public Day11() { _directions = File.ReadAllText("inputs/day11/input.txt") .Split(','); _childLocation = new HexGridLocation(); _furthestLocation = 0; ComputeChildLocation(); }