mirror of
https://github.com/furyfire/trueskill.git
synced 2025-01-16 01:47:39 +00:00
Pint applied
This commit is contained in:
@ -3,13 +3,13 @@
|
|||||||
"description": "Trueskill implementation by Moserware updated for PHP 8.1",
|
"description": "Trueskill implementation by Moserware updated for PHP 8.1",
|
||||||
"keywords": ["trueskill", "matchmaking", "ranking", "skill", "elo"],
|
"keywords": ["trueskill", "matchmaking", "ranking", "skill", "elo"],
|
||||||
"require": {
|
"require": {
|
||||||
"php": "^8.1",
|
"php": "^8.1"
|
||||||
"laravel/pint": "^0.2.3"
|
|
||||||
},
|
},
|
||||||
"require-dev": {
|
"require-dev": {
|
||||||
"phpunit/phpunit": "^9.0",
|
"phpunit/phpunit": "^9.0",
|
||||||
"rector/rector": "^0.13.7",
|
"rector/rector": "^0.13.7",
|
||||||
"phpstan/phpstan": "^1.8"
|
"phpstan/phpstan": "^1.8",
|
||||||
|
"laravel/pint": "^0.2.3"
|
||||||
},
|
},
|
||||||
"autoload": {
|
"autoload": {
|
||||||
"psr-4": {
|
"psr-4": {
|
||||||
|
137
composer.lock
generated
137
composer.lock
generated
@ -4,75 +4,8 @@
|
|||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"content-hash": "6b092682644fef66d759ad40475e1f2e",
|
"content-hash": "ac8b97bff674024ae19ad228626b465d",
|
||||||
"packages": [
|
"packages": [],
|
||||||
{
|
|
||||||
"name": "laravel/pint",
|
|
||||||
"version": "v0.2.3",
|
|
||||||
"source": {
|
|
||||||
"type": "git",
|
|
||||||
"url": "https://github.com/laravel/pint.git",
|
|
||||||
"reference": "d0829631687c1238abdd660daac3d7218254b65c"
|
|
||||||
},
|
|
||||||
"dist": {
|
|
||||||
"type": "zip",
|
|
||||||
"url": "https://api.github.com/repos/laravel/pint/zipball/d0829631687c1238abdd660daac3d7218254b65c",
|
|
||||||
"reference": "d0829631687c1238abdd660daac3d7218254b65c",
|
|
||||||
"shasum": ""
|
|
||||||
},
|
|
||||||
"require": {
|
|
||||||
"ext-json": "*",
|
|
||||||
"ext-mbstring": "*",
|
|
||||||
"ext-tokenizer": "*",
|
|
||||||
"ext-xml": "*",
|
|
||||||
"php": "^8.0"
|
|
||||||
},
|
|
||||||
"require-dev": {
|
|
||||||
"friendsofphp/php-cs-fixer": "^3.8.0",
|
|
||||||
"illuminate/view": "^9.17.0",
|
|
||||||
"laravel-zero/framework": "^9.1.1",
|
|
||||||
"mockery/mockery": "^1.5.0",
|
|
||||||
"nunomaduro/larastan": "^2.1.11",
|
|
||||||
"nunomaduro/termwind": "^1.10.1",
|
|
||||||
"pestphp/pest": "^1.21.3"
|
|
||||||
},
|
|
||||||
"bin": [
|
|
||||||
"builds/pint"
|
|
||||||
],
|
|
||||||
"type": "project",
|
|
||||||
"autoload": {
|
|
||||||
"psr-4": {
|
|
||||||
"App\\": "app/",
|
|
||||||
"Database\\Seeders\\": "database/seeders/",
|
|
||||||
"Database\\Factories\\": "database/factories/"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"notification-url": "https://packagist.org/downloads/",
|
|
||||||
"license": [
|
|
||||||
"MIT"
|
|
||||||
],
|
|
||||||
"authors": [
|
|
||||||
{
|
|
||||||
"name": "Nuno Maduro",
|
|
||||||
"email": "enunomaduro@gmail.com"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"description": "An opinionated code formatter for PHP.",
|
|
||||||
"homepage": "https://laravel.com",
|
|
||||||
"keywords": [
|
|
||||||
"format",
|
|
||||||
"formatter",
|
|
||||||
"lint",
|
|
||||||
"linter",
|
|
||||||
"php"
|
|
||||||
],
|
|
||||||
"support": {
|
|
||||||
"issues": "https://github.com/laravel/pint/issues",
|
|
||||||
"source": "https://github.com/laravel/pint"
|
|
||||||
},
|
|
||||||
"time": "2022-07-04T16:04:06+00:00"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"packages-dev": [
|
"packages-dev": [
|
||||||
{
|
{
|
||||||
"name": "doctrine/instantiator",
|
"name": "doctrine/instantiator",
|
||||||
@ -144,6 +77,72 @@
|
|||||||
],
|
],
|
||||||
"time": "2022-03-03T08:28:38+00:00"
|
"time": "2022-03-03T08:28:38+00:00"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"name": "laravel/pint",
|
||||||
|
"version": "v0.2.3",
|
||||||
|
"source": {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/laravel/pint.git",
|
||||||
|
"reference": "d0829631687c1238abdd660daac3d7218254b65c"
|
||||||
|
},
|
||||||
|
"dist": {
|
||||||
|
"type": "zip",
|
||||||
|
"url": "https://api.github.com/repos/laravel/pint/zipball/d0829631687c1238abdd660daac3d7218254b65c",
|
||||||
|
"reference": "d0829631687c1238abdd660daac3d7218254b65c",
|
||||||
|
"shasum": ""
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
"ext-json": "*",
|
||||||
|
"ext-mbstring": "*",
|
||||||
|
"ext-tokenizer": "*",
|
||||||
|
"ext-xml": "*",
|
||||||
|
"php": "^8.0"
|
||||||
|
},
|
||||||
|
"require-dev": {
|
||||||
|
"friendsofphp/php-cs-fixer": "^3.8.0",
|
||||||
|
"illuminate/view": "^9.17.0",
|
||||||
|
"laravel-zero/framework": "^9.1.1",
|
||||||
|
"mockery/mockery": "^1.5.0",
|
||||||
|
"nunomaduro/larastan": "^2.1.11",
|
||||||
|
"nunomaduro/termwind": "^1.10.1",
|
||||||
|
"pestphp/pest": "^1.21.3"
|
||||||
|
},
|
||||||
|
"bin": [
|
||||||
|
"builds/pint"
|
||||||
|
],
|
||||||
|
"type": "project",
|
||||||
|
"autoload": {
|
||||||
|
"psr-4": {
|
||||||
|
"App\\": "app/",
|
||||||
|
"Database\\Seeders\\": "database/seeders/",
|
||||||
|
"Database\\Factories\\": "database/factories/"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"notification-url": "https://packagist.org/downloads/",
|
||||||
|
"license": [
|
||||||
|
"MIT"
|
||||||
|
],
|
||||||
|
"authors": [
|
||||||
|
{
|
||||||
|
"name": "Nuno Maduro",
|
||||||
|
"email": "enunomaduro@gmail.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "An opinionated code formatter for PHP.",
|
||||||
|
"homepage": "https://laravel.com",
|
||||||
|
"keywords": [
|
||||||
|
"format",
|
||||||
|
"formatter",
|
||||||
|
"lint",
|
||||||
|
"linter",
|
||||||
|
"php"
|
||||||
|
],
|
||||||
|
"support": {
|
||||||
|
"issues": "https://github.com/laravel/pint/issues",
|
||||||
|
"source": "https://github.com/laravel/pint"
|
||||||
|
},
|
||||||
|
"time": "2022-07-04T16:04:06+00:00"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "myclabs/deep-copy",
|
"name": "myclabs/deep-copy",
|
||||||
"version": "1.11.0",
|
"version": "1.11.0",
|
||||||
|
@ -9,7 +9,7 @@ use Rector\Set\ValueObject\SetList;
|
|||||||
|
|
||||||
return static function (RectorConfig $rectorConfig): void {
|
return static function (RectorConfig $rectorConfig): void {
|
||||||
$rectorConfig->paths([
|
$rectorConfig->paths([
|
||||||
__DIR__ . '/src'
|
__DIR__.'/src',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// register a single rule
|
// register a single rule
|
||||||
|
@ -47,6 +47,7 @@ abstract class SkillCalculator
|
|||||||
/**
|
/**
|
||||||
* @param array<\DNW\Skills\Team> $teams
|
* @param array<\DNW\Skills\Team> $teams
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
* @throws \Exception
|
* @throws \Exception
|
||||||
*/
|
*/
|
||||||
private static function validateTeamCountAndPlayersCountPerTeamWithRanges(array $teams, TeamsRange $totalTeams, PlayersRange $playersPerTeam)
|
private static function validateTeamCountAndPlayersCountPerTeamWithRanges(array $teams, TeamsRange $totalTeams, PlayersRange $playersPerTeam)
|
||||||
|
@ -38,6 +38,5 @@ class GaussianPriorFactor extends GaussianFactor
|
|||||||
$message->setValue($this->_newMessage);
|
$message->setValue($this->_newMessage);
|
||||||
|
|
||||||
return GaussianDistribution::subtract($oldMarginal, $newMarginal);
|
return GaussianDistribution::subtract($oldMarginal, $newMarginal);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -5,7 +5,6 @@ namespace DNW\Skills\TrueSkill\Layers;
|
|||||||
use DNW\Skills\FactorGraphs\ScheduleStep;
|
use DNW\Skills\FactorGraphs\ScheduleStep;
|
||||||
use DNW\Skills\PartialPlay;
|
use DNW\Skills\PartialPlay;
|
||||||
use DNW\Skills\TrueSkill\Factors\GaussianWeightedSumFactor;
|
use DNW\Skills\TrueSkill\Factors\GaussianWeightedSumFactor;
|
||||||
use DNW\Skills\TrueSkill\TrueSkillFactorGraph;
|
|
||||||
|
|
||||||
class PlayerPerformancesToTeamPerformancesLayer extends TrueSkillFactorGraphLayer
|
class PlayerPerformancesToTeamPerformancesLayer extends TrueSkillFactorGraphLayer
|
||||||
{
|
{
|
||||||
|
@ -6,7 +6,6 @@ use DNW\Skills\FactorGraphs\KeyedVariable;
|
|||||||
use DNW\Skills\FactorGraphs\ScheduleStep;
|
use DNW\Skills\FactorGraphs\ScheduleStep;
|
||||||
use DNW\Skills\Numerics\BasicMath;
|
use DNW\Skills\Numerics\BasicMath;
|
||||||
use DNW\Skills\TrueSkill\Factors\GaussianLikelihoodFactor;
|
use DNW\Skills\TrueSkill\Factors\GaussianLikelihoodFactor;
|
||||||
use DNW\Skills\TrueSkill\TrueSkillFactorGraph;
|
|
||||||
|
|
||||||
class PlayerSkillsToPerformancesLayer extends TrueSkillFactorGraphLayer
|
class PlayerSkillsToPerformancesLayer extends TrueSkillFactorGraphLayer
|
||||||
{
|
{
|
||||||
|
@ -4,7 +4,6 @@ namespace DNW\Skills\TrueSkill\Layers;
|
|||||||
|
|
||||||
use DNW\Skills\FactorGraphs\Variable;
|
use DNW\Skills\FactorGraphs\Variable;
|
||||||
use DNW\Skills\TrueSkill\Factors\GaussianWeightedSumFactor;
|
use DNW\Skills\TrueSkill\Factors\GaussianWeightedSumFactor;
|
||||||
use DNW\Skills\TrueSkill\TrueSkillFactorGraph;
|
|
||||||
|
|
||||||
class TeamPerformancesToTeamPerformanceDifferencesLayer extends TrueSkillFactorGraphLayer
|
class TeamPerformancesToTeamPerformanceDifferencesLayer extends TrueSkillFactorGraphLayer
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user