AdventOfCode/AdventOfCode.Solutions/2022/Day 02/Day02Part2.cs
Rob 3846b42b7e Massive code base change
partial completion of day 3
2023-12-03 19:09:26 +01:00

20 lines
559 B
C#

using AdventOfCode.Solutions._2022.Day02;
namespace AdventOfCode.Solutions._2022
{
public class Day02Part2 : Answerable
{
public override int Year { get; set; } = 2022;
public override int Day { get; set; } = 2;
public override int Part { get; set; } = 2;
public override string GetAnswer(byte[] data)
{
GameRules.BuildWinDrawLoseTable();
return GetAsStringArray(data)
.Select(GameRules.GetScore)
.Sum()
.ToString();
}
}
}