fix: N2H2V5独立分支用NeuralBotV5 - 新增NeuralBotV5类 + InitBots映射 + --n2h2v5参数

This commit is contained in:
2026-07-18 11:20:14 +08:00
parent aa4cbd0a3e
commit ebf2a0dc98
28682 changed files with 483795 additions and 24 deletions

View File

@ -57,7 +57,7 @@ namespace PdkFriendServer.Logic
}
/// <summary>懒初始化3个botBotMode==true时首次WaitWanJiaShuRu调用
/// BotTypes: "ISMCTS" / "NEURAL" / null=默认ISMCTS
/// BotTypes: "ISMCTS" / "NEURAL" / "NEURAL_V5" / null=默认ISMCTS
/// 训练模式: ["NEURAL","NEURAL","ISMCTS"] = 2个模型bot + 1个ISMCTS</summary>
public static string[] BotTypes = null;
private static int _flushGameCounter = 0;
@ -70,6 +70,8 @@ namespace PdkFriendServer.Logic
string type = BotTypes != null && BotTypes.Length > i ? BotTypes[i] : null;
if (type == "NEURAL")
_bots[i] = new NeuralBot("model.onnx", 0.1f);
else if (type == "NEURAL_V5")
_bots[i] = new NeuralBotV5("model_v5.onnx", 0.05f);
else
_bots[i] = new IsmctsBot();
}