1
0
Fork 0
mirror of https://github.com/sockspls/badfish synced 2025-05-01 17:19:36 +00:00

Changed the constant value to calculate the winning percentage.

This commit is contained in:
Hisayori Noda 2019-06-26 08:48:48 +09:00
parent 26271586cb
commit 00f84ed99a

View file

@ -1014,7 +1014,8 @@ double winning_percentage(double value)
{
// この600.0という定数は、ponanza定数。(ponanzaがそうしているらしいという意味で)
// ゲームの進行度に合わせたものにしたほうがいいかも知れないけども、その効果のほどは不明。
return sigmoid(value / 600.0);
// Pawn Advantage, Win Percentage, and Elo - Chessprogramming wiki https://www.chessprogramming.org/Pawn_Advantage,_Win_Percentage,_and_Elo
return sigmoid(value * log(10.0) / 4.0 / PawnValueEg);
}
// 普通のシグモイド関数の導関数。