fix: N2H2V5独立分支用NeuralBotV5 - 新增NeuralBotV5类 + InitBots映射 + --n2h2v5参数
This commit is contained in:
@ -57,7 +57,7 @@ namespace PdkFriendServer.Logic
|
||||
}
|
||||
|
||||
/// <summary>懒初始化3个bot(BotMode==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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user