mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
This commit is contained in:
@ -302,6 +302,7 @@ class Matrix
|
|||||||
if ($isEven) {
|
if ($isEven) {
|
||||||
return $this->getMinorMatrix($rowToRemove, $columnToRemove)->getDeterminant();
|
return $this->getMinorMatrix($rowToRemove, $columnToRemove)->getDeterminant();
|
||||||
}
|
}
|
||||||
|
|
||||||
return -1.0 * $this->getMinorMatrix($rowToRemove, $columnToRemove)->getDeterminant();
|
return -1.0 * $this->getMinorMatrix($rowToRemove, $columnToRemove)->getDeterminant();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,12 +9,14 @@ class Team extends RatingContainer
|
|||||||
public function __construct(Player $player = NULL, Rating $rating = NULL)
|
public function __construct(Player $player = NULL, Rating $rating = NULL)
|
||||||
{
|
{
|
||||||
parent::__construct();
|
parent::__construct();
|
||||||
if (!$player instanceof \DNW\Skills\Player) {
|
if (!$player instanceof layer) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!$rating instanceof \DNW\Skills\Rating) {
|
|
||||||
|
if (!$rating instanceof Rating) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->addPlayer($player, $rating);
|
$this->addPlayer($player, $rating);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user