mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
22 lines
332 B
PHP
22 lines
332 B
PHP
<?php
|
|
|
|
namespace Moserware\Skills\Elo;
|
|
|
|
class KFactor
|
|
{
|
|
const DEFAULT_KFACTOR = 24;
|
|
|
|
private $_value;
|
|
|
|
public function __construct($exactKFactor = self::DEFAULT_KFACTOR)
|
|
{
|
|
$this->_value = $exactKFactor;
|
|
}
|
|
|
|
public function getValueForRating($rating)
|
|
{
|
|
return $this->_value;
|
|
}
|
|
}
|
|
|
|
?>
|