21 lines
594 B
C#
21 lines
594 B
C#
namespace AdventOfCodeLibrary._2022
|
|
{
|
|
using AdventOfCodeLibrary._2022.Day02;
|
|
using AdventOfCodeLibrary.Shared;
|
|
|
|
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 GetAwner(byte[] data)
|
|
{
|
|
GameRules.BuildWinDrawLoseTable();
|
|
return GetAsStringArray(data)
|
|
.Select(GameRules.GetScore)
|
|
.Sum()
|
|
.ToString();
|
|
}
|
|
}
|
|
} |