mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-27 19:37:41 +00:00
First time I got the two team TrueSkill calculator up and running
This commit is contained in:
@ -14,4 +14,11 @@ function square($x)
|
||||
{
|
||||
return $x * $x;
|
||||
}
|
||||
|
||||
function sum($itemsToSum, $funcName )
|
||||
{
|
||||
$mappedItems = array_map($funcName, $itemsToSum);
|
||||
return array_sum($mappedItems);
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user