Add tutorial and QoL improvements

This commit is contained in:
2026-10-24 00:52:14 +02:00
parent ac48c24a03
commit ec3e784683
53 changed files with 3526 additions and 939 deletions
+5
View File
@@ -48,6 +48,11 @@ namespace KernelPanic.Run
public IReadOnlyList<PackageInstance> EquippedPackages { get; }
public int RunSeed { get; }
public int DistroVersion { get; }
public int TutorialLesson { get; internal set; }
public bool IsTutorial => TutorialLesson > 0;
public static RunConfig ForTutorial(DistroDefinition distro, IReadOnlyList<CardDefinition> deck, int lesson)
=> new RunConfig(distro, Language.Python, Language.Haskell, deck, 94100 + lesson, 1) { TutorialLesson = lesson };
private static IReadOnlyList<PackageInstance> ToInstances(IReadOnlyList<PackageDefinition> packages)
{