ユーザー名: パスワード:
新ユーザー登録
管理人: SueQ , coan.net 
 Backgammon

Backgammon and variants.

Backgammon Links


掲示板表
モード: 誰でも投稿可能
メールの内容の検索:  

27. 9月 2005, 05:38:03
playBunny 
件名: Re: ELO Bg formula
playBunny (27. 9月 2005, 05:44:43)に変更されました。
And a good calculator once you get past airplane-cockpit syndrome, lol.

Javascript calaculation:
function afRatingChanges (fRatingP1, fRatingP2, uiExperienceP1, uiExperienceP2, uiMatchLength)
    {
    var fRatingDiff = Math.abs (fRatingP1 - fRatingP2);
    var fRootMatchLen = Math.sqrt (uiMatchLength);
    var fBasicMatchValue = 4 * fRootMatchLen;

    var fProbUnderdogWins = 1 / (1 + Math.pow (10, fRatingDiff * fRootMatchLen / 2000));

    if (fRatingP1 < fRatingP2)
{
     fProbWinsP1 = fProbUnderdogWins;
     fProbWinsP2 = 1 - fProbWinsP1;
     }
    else
   {
  fProbWinsP2 = fProbUnderdogWins;
    fProbWinsP1 = 1 - fProbWinsP2;
  }

    var fExperienceFactor1 = Math.max (1, 5 - (uiExperienceP1 + uiMatchLength) / 100); // Will be 1 when
    var fExperienceFactor2 = Math.max (1, 5 - (uiExperienceP2 + uiMatchLength) / 100); // Exp >= 400.

    var fRatingChange1W = fBasicMatchValue * fProbWinsP2 * fExperienceFactor1;
    var fRatingChange1L = fBasicMatchValue * fProbWinsP1 * fExperienceFactor1;
    var fRatingChange2W = fBasicMatchValue * fProbWinsP1 * fExperienceFactor2;
    var fRatingChange2L = fBasicMatchValue * fProbWinsP2 * fExperienceFactor2;

    return new Array (
       fRatingChange1W, fRatingChange1L,
      fRatingChange2W, fRatingChange2L);
    }

日時
オンライン友達
気に入り掲示板
同好会
今日のアドバイス
著作権 © 2002 - 2024 Filip Rachunek.
上へ