20 lines
541 B
C#
20 lines
541 B
C#
using AdventOfCode.Solutions._2022.Day_09;
|
|
|
|
namespace AdventOfCode.Solutions._2022
|
|
{
|
|
public class Day09Part1 : Answerable
|
|
{
|
|
public override int Year { get; set; } = 2022;
|
|
public override int Day { get; set; } = 9;
|
|
public override int Part { get; set; } = 1;
|
|
|
|
public override string GetAnswer(byte[] data)
|
|
{
|
|
string[] movements = GetAsStringArray(data);
|
|
RopeWalker walker = new();
|
|
|
|
return walker.ProcessMovement(movements, 2).ToString();
|
|
}
|
|
}
|
|
}
|