auto train

This commit is contained in:
Josh-Heaps
2026-06-13 17:30:09 -06:00
parent d71e485611
commit aeef320cb4
8 changed files with 404 additions and 229 deletions
@@ -29,6 +29,13 @@ public sealed class ChessEngineOptions
/// clashes. Override via the <c>ChessEngine__WeightsPath</c> environment variable.
/// </summary>
public string? WeightsPath { get; set; }
/// <summary>
/// When true (and outside Development), a background service continuously plays the learned
/// engine against Stockfish to train it. Set to false to stop auto-training without a
/// redeploy. Override via the <c>ChessEngine__AutoTrain</c> environment variable.
/// </summary>
public bool AutoTrain { get; set; } = true;
}
/// <summary>Creates the configured <see cref="IChessEngine"/> per game.</summary>