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