Implements AI Switching
All checks were successful
Build / Build (push) Successful in 58s

This commit is contained in:
2025-07-12 13:03:00 +02:00
parent 364d4b9080
commit bf83b25238
34 changed files with 903 additions and 226 deletions

View File

@@ -32,6 +32,7 @@ public static class TestCommandRunner
randoms[i] = new RandomImpl(rootRandom.GetInt());
battleTasks[i] = Task.CompletedTask; // Initialize tasks to avoid null references
}
const int pokemonPerParty = 6;
// Show a progress bar if debug logging is not enabled.
// We disable this if debug logging is on, to prevent annoying console output where the progress bar is drawn in
@@ -55,7 +56,7 @@ public static class TestCommandRunner
{
Log.Debug("Battle {BattleNumber}: {AI1} vs {AI2}", index + 1, ai1.Name, ai2.Name);
var random = randoms[taskIndex];
var battle = GenerateBattle(library, 3, random);
var battle = GenerateBattle(library, pokemonPerParty, random);
var timePerTurn = new List<double>(20);
while (!battle.HasEnded)
{