mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-20 16:48:04 +00:00
First TwoPlayerTrueSkillCalculator unit test passed
This commit is contained in:
22
PHPSkills/Elo/KFactor.php
Normal file
22
PHPSkills/Elo/KFactor.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user