diff --git a/PdkFriendServer/Logic/IsmctsBot.cs b/PdkFriendServer/Logic/IsmctsBot.cs index 9a216979..c1e23777 100644 --- a/PdkFriendServer/Logic/IsmctsBot.cs +++ b/PdkFriendServer/Logic/IsmctsBot.cs @@ -18,7 +18,8 @@ namespace PdkFriendServer.Logic { private readonly int _simulations; private readonly Random _rng; - private const double BaoThreshold = 0.60; + private const double BaoThreshold = 0.70; // 100局校准: 60%→30%, 提至70% + private const double MultiBonusPerCard = 0.10; // 多牌加权: 每多1张+10% public IsmctsBot(int simulations = 800) { @@ -93,6 +94,17 @@ namespace PdkFriendServer.Logic scoredCandidates.Add((play, (double)wins / simsPerCandidate, allCandidates[ci].isMulti)); } + // 多牌加权: 两阶段选择前给多牌候选加胜率偏置 + for (int i = 0; i < scoredCandidates.Count; i++) + { + if (scoredCandidates[i].isMulti) + { + int cardCount = scoredCandidates[i].play.Ids?.Length ?? 1; + var (p, wr, m) = scoredCandidates[i]; + scoredCandidates[i] = (p, wr + cardCount * MultiBonusPerCard, m); + } + } + // 两阶段选择:多牌优先 scoredCandidates.Sort((a, b) => b.winRate.CompareTo(a.winRate)); var best = scoredCandidates[0]; diff --git a/exe/PdkFriendServer/PdkFriendServer.dll b/exe/PdkFriendServer/PdkFriendServer.dll index 138ac25d..b716977c 100644 Binary files a/exe/PdkFriendServer/PdkFriendServer.dll and b/exe/PdkFriendServer/PdkFriendServer.dll differ diff --git a/exe/PdkFriendServer/PdkFriendServer.pdb b/exe/PdkFriendServer/PdkFriendServer.pdb index f3ad9666..289f984c 100644 Binary files a/exe/PdkFriendServer/PdkFriendServer.pdb and b/exe/PdkFriendServer/PdkFriendServer.pdb differ diff --git a/exe/hjha-console/PdkFriendServer.dll b/exe/hjha-console/PdkFriendServer.dll index 138ac25d..b716977c 100644 Binary files a/exe/hjha-console/PdkFriendServer.dll and b/exe/hjha-console/PdkFriendServer.dll differ diff --git a/exe/hjha-console/PdkFriendServer.pdb b/exe/hjha-console/PdkFriendServer.pdb index f3ad9666..289f984c 100644 Binary files a/exe/hjha-console/PdkFriendServer.pdb and b/exe/hjha-console/PdkFriendServer.pdb differ diff --git a/exe/hjha-console/hjha-console.dll b/exe/hjha-console/hjha-console.dll index 887440aa..69e107f9 100644 Binary files a/exe/hjha-console/hjha-console.dll and b/exe/hjha-console/hjha-console.dll differ diff --git a/exe/hjha-console/hjha-console.pdb b/exe/hjha-console/hjha-console.pdb index bda5f175..20ca50e2 100644 Binary files a/exe/hjha-console/hjha-console.pdb and b/exe/hjha-console/hjha-console.pdb differ