Xocrates wrote:Hey Pox! It seems the predict-o-mat is broken! Try making WR VS Ace on Asia Vs Russia and see what happens, that is not correct according to my calculations

Sorry, I had replaced (dw ^ 2) ^ .5 with dw when it should be abs(dw)... damn you, magic-absoluting-sqrt-symbol.
EDIT: The new HWR formula you stuck up is now working, and if you feel like giving me a procedural/mathematic description of the spreadsheet I can put it in.
If it helps, or you can spot a bug, here's the code, where $p is the current player number, $wr is an array of their win ratios, $cwr is an array of the respective continents' win ratios, $hwr is an array of their win ratios _against each other_, $players is an array of their names and $territories is an array of the continents names. Basically, $something[$p] is the current player's value, $something[!$p] is the other player's value.
Code: Select all
for ($p = 0; $p <= 1; $p++) {
$dw = pow(.000975,(1/($p_played + pow(10,-11)))) * ($hwr[$p] - $hwr[!$p]) + (1-pow(.000975,(1/($p_played + pow(10,-11))))) * ($wr[$p] - $wr[!$p]);
$cwr = $territory_wr[$p];
$f2 = (1 - $dw / (abs($dw) + pow(10,-11)))/2;
$y = $cwr * $dw * $f2;
$f1 = (1 + $dw / (abs($dw) + pow(10,-11)))/2;
$x = (1 - $cwr) * $dw * $f1;
$w = round($cwr + $x + $y,2) * 100;
if ($w >= 50)
echo "<h2>${players[$p]} with ${territories[$p]} has a $w% chance of beating ${players[!$p]} with ${territories[!$p]}.</h2>";
}