Skip to content

tauqir295/abyat-mvp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tools : Intellij Community edition Java : 8

Inputs samples : sample_data folder contains text files for basketball and handball


Solution:

There is EBasketballPosition and EHandballPosition classes with properties position that is a position in current game and positions that are the positions that player took in all games of a tournament.

The Most Valuable Player calculation algorithm:

For each input statistics game file : readMatchStats from input file where data is parsed for Handball and Basketball at the moment

calculatePlayersPoints applying correct Position.calculatePoints algorithm

getMVPNickName of the tournament based on ratings aggregate value

The solution implements efficient sorting algorithm and can be easily extended by:

adding new Games in Main class and their respective Model class which will inherit iGame class

add enum class for position of new game which will implement IPosition

add MatchStatistics class for respective new game and implement it with AbstractPlayerMatchStatistics

The rest of the application should work without changes.


Output : Most valuable player nick3

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages