mirror of
				https://github.com/furyfire/trueskill.git
				synced 2025-11-04 10:12:28 +01:00 
			
		
		
		
	First TwoPlayerTrueSkillCalculator unit test passed
This commit is contained in:
		
							
								
								
									
										21
									
								
								PHPSkills/PlayersRange.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								PHPSkills/PlayersRange.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,21 @@
 | 
			
		||||
<?php
 | 
			
		||||
namespace Moserware\Skills;
 | 
			
		||||
 | 
			
		||||
require_once(dirname(__FILE__) . "/Numerics/Range.php");
 | 
			
		||||
 | 
			
		||||
use Moserware\Numerics\Range;
 | 
			
		||||
 | 
			
		||||
class PlayersRange extends Range
 | 
			
		||||
{
 | 
			
		||||
    public function __construct($min, $max)
 | 
			
		||||
    {
 | 
			
		||||
        parent::__construct($min, $max);
 | 
			
		||||
    }
 | 
			
		||||
    
 | 
			
		||||
    protected static function create($min, $max)
 | 
			
		||||
    {
 | 
			
		||||
        return new PlayersRange($min, $max);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
		Reference in New Issue
	
	Block a user