Skip to content

jonathan-ditcher/football-player-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

football-player-generator

Generates accurate football players based on a highly extendible template system, can also progress players ability through their age

Usage

new PlayerGenerator().generatePlayers(int numToGenerate);

will create a population of of players between the ages of 15-40, using an alpha of 2 and beta 4 to calculate the age distribution

Image of Beta distribution

Alternatively use the following method call to specify different parameters:

new PlayerGenerator().generatePlayers(int numToGenerate, BetaDistribution beta, double minAge, double maxAge);

Where the beta distribution can be simply created using:

BetaDistribution beta = new BetaDistribution(double alpha, double beta);

About

Utility to generate an accurate pool of football players

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages