50 lines
1.2 KiB
C#
50 lines
1.2 KiB
C#
using AdventOfCode.Core.Shared.A_Star;
|
|
|
|
namespace AdventOfCode.Solutions._2023
|
|
{
|
|
public class Day17 : IChallange
|
|
{
|
|
public int Year => 2023;
|
|
public int Day => 17;
|
|
|
|
private readonly InputReader _inputReader;
|
|
|
|
public Day17(InputReader inputReader)
|
|
{
|
|
_inputReader = inputReader;
|
|
_inputReader.SetInput(this);
|
|
}
|
|
|
|
public async Task<string> GetSolutionPart1()
|
|
{
|
|
AStarGrid<HeatNode> grid = await _inputReader.ReadToGrid<HeatNode>() as AStarGrid<HeatNode>;
|
|
|
|
return string.Empty;
|
|
}
|
|
|
|
public async Task<string> GetSolutionPart2()
|
|
{
|
|
return string.Empty;
|
|
}
|
|
|
|
public class HeatNode : AStarNode
|
|
{
|
|
private int HeatLoss { get => int.Parse("" + Value); }
|
|
|
|
public HeatNode() { }
|
|
|
|
public HeatNode(Point position) : base(position)
|
|
{
|
|
}
|
|
|
|
public HeatNode(int x, int y, char value) : base(x, y, value)
|
|
{
|
|
}
|
|
|
|
public override bool CanMoveTo(AStarNode target)
|
|
{
|
|
return base.CanMoveTo(target);
|
|
}
|
|
}
|
|
}
|
|
} |