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:
24
PHPSkills/Team.php
Normal file
24
PHPSkills/Team.php
Normal file
@ -0,0 +1,24 @@
|
||||
<?php
|
||||
namespace Moserware\Skills;
|
||||
|
||||
require_once(dirname(__FILE__) . '/RatingContainer.php');
|
||||
|
||||
class Team extends RatingContainer
|
||||
{
|
||||
public function __construct($player = null, $rating = null)
|
||||
{
|
||||
if(!\is_null($player))
|
||||
{
|
||||
$this->addPlayer($player, $rating);
|
||||
}
|
||||
}
|
||||
|
||||
public function addPlayer($player, $rating)
|
||||
{
|
||||
$this->setRating($player, $rating);
|
||||
return $this;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
Reference in New Issue
Block a user