mirror of
https://github.com/furyfire/trueskill.git
synced 2025-04-18 20:04:28 +00:00
Naming tweak
This commit is contained in:
22
Skills/Elo/KFactor.php
Normal file
22
Skills/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