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