mirror of
https://github.com/furyfire/trueskill.git
synced 2025-03-22 09:27:51 +00:00
First TwoPlayerTrueSkillCalculator unit test passed
This commit is contained in:
PHPSkills
Elo
EloRating.phpFideEloCalculator.phpFideKFactor.phpGaussianEloCalculator.phpKFactor.phpTwoPlayerEloCalculator.php
GameInfo.phpGuard.phpISupportPartialPlay.phpISupportPartialUpdate.phpNumerics
PairwiseComparison.phpPlayer.phpPlayersRange.phpRankSorter.phpRating.phpRatingContainer.phpSkillCalculator.phpTeam.phpTeams.phpTeamsRange.phpTrueSkill
UnitTests
nbproject
test.phpweb.config
18
PHPSkills/Teams.php
Normal file
18
PHPSkills/Teams.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
namespace Moserware\Skills;
|
||||
|
||||
class Teams
|
||||
{
|
||||
public static function concat(/*variable arguments*/)
|
||||
{
|
||||
$args = \func_get_args();
|
||||
$result = array();
|
||||
|
||||
foreach ($args as $currentTeam) {
|
||||
$result[] = $currentTeam;
|
||||
}
|
||||
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user