Implements AI Switching
Build / Build (push) Successful in 58s

This commit is contained in:
Deukhoofd committed 2025-07-12 13:03:00 +02:00
1 parent 364d4b9080
commit bf83b25238
34 files changed
+903 -226

No files matched your search

+2 -1
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)
{