From 436858e65cbd7fbad0268ddce1b0bea71372a67a Mon Sep 17 00:00:00 2001 From: Asriel Camora Date: Fri, 7 Jul 2023 20:18:30 +0200 Subject: [PATCH] Optimizations/improve action gen --- Solver/Crafty/Simulator.cs | 9 ++++++++- Solver/Crafty/SolverConfig.cs | 4 ++-- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Solver/Crafty/Simulator.cs b/Solver/Crafty/Simulator.cs index 2e3a82a..378a485 100644 --- a/Solver/Crafty/Simulator.cs +++ b/Solver/Crafty/Simulator.cs @@ -94,6 +94,13 @@ public sealed class Simulator : SimulatorNoRandom baseAction.IncreasesQuality) return false; + // use First Turn actions if it's available and the craft is difficult + if (baseAction.Category != ActionCategory.FirstTurn && + Input.Recipe.ClassJobLevel == 90 && + StepCount == 1 && + CP > 10) + return false; + // don't allow pure quality moves under Veneration if (HasEffect(EffectType.Veneration) && !baseAction.IncreasesProgress && @@ -130,7 +137,7 @@ public sealed class Simulator : SimulatorNoRandom return false; if (action == ActionType.Observe && - CP < 5) + CP < 12) return false; if (action == ActionType.MastersMend && diff --git a/Solver/Crafty/SolverConfig.cs b/Solver/Crafty/SolverConfig.cs index 4ffd308..e970cfd 100644 --- a/Solver/Crafty/SolverConfig.cs +++ b/Solver/Crafty/SolverConfig.cs @@ -18,9 +18,9 @@ public readonly record struct SolverConfig Iterations = 300000; ScoreStorageThreshold = 1f; MaxScoreWeightingConstant = 0.1f; - ExplorationConstant = 2; + ExplorationConstant = 4; MaxStepCount = 25; - MaxRolloutStepCount = 99; + MaxRolloutStepCount = MaxStepCount; ThreadCount = Environment.ProcessorCount; } }