2024-12-02 18:51:49 +01:00
|
|
|
|
namespace AoC24;
|
|
|
|
|
|
|
|
|
|
using AoC24.Common;
|
|
|
|
|
using AoCLevelInputProvider;
|
|
|
|
|
using Parsing;
|
|
|
|
|
using Parsing.Schema;
|
|
|
|
|
|
2024-12-04 12:47:10 +01:00
|
|
|
|
public class LevelXSolver_Fragment : FragmentLevelSolverBase
|
2024-12-02 18:51:49 +01:00
|
|
|
|
{
|
|
|
|
|
public override int LevelNumber
|
|
|
|
|
{
|
|
|
|
|
// TODO: update level number, csproj file and rename class!
|
|
|
|
|
get { return 1; }
|
|
|
|
|
}
|
|
|
|
|
|
2024-12-04 12:47:10 +01:00
|
|
|
|
protected override FragmentSchemaBuilder DefineInputSchema(FragmentSchemaBuilder schemaBuilder)
|
2024-12-02 18:51:49 +01:00
|
|
|
|
{
|
|
|
|
|
return schemaBuilder
|
|
|
|
|
.Repeat()
|
|
|
|
|
.Expect(InputType.Integer)
|
|
|
|
|
.EndRepetition();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string SolveFirstStar()
|
|
|
|
|
{
|
|
|
|
|
var data = this.GetData()
|
2024-12-04 12:47:10 +01:00
|
|
|
|
.AsFragments();
|
2024-12-02 18:51:49 +01:00
|
|
|
|
|
|
|
|
|
// TODO: implement
|
|
|
|
|
|
|
|
|
|
return string.Empty;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string SolveSecondStar()
|
|
|
|
|
{
|
|
|
|
|
var data = this.GetData()
|
2024-12-04 12:47:10 +01:00
|
|
|
|
.AsFragments();
|
2024-12-02 18:51:49 +01:00
|
|
|
|
|
|
|
|
|
// TODO: implement
|
|
|
|
|
|
|
|
|
|
return string.Empty;
|
|
|
|
|
}
|
|
|
|
|
}
|