mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-15 17:37:39 +00:00
This commit is contained in:
@ -302,6 +302,7 @@ class Matrix
|
||||
if ($isEven) {
|
||||
return $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)
|
||||
{
|
||||
parent::__construct();
|
||||
if (!$player instanceof \DNW\Skills\Player) {
|
||||
if (!$player instanceof layer) {
|
||||
return;
|
||||
}
|
||||
if (!$rating instanceof \DNW\Skills\Rating) {
|
||||
|
||||
if (!$rating instanceof Rating) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->addPlayer($player, $rating);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user