Skip to content

Creates a player ranking based on Clash of Clans CWL stats taken from Sidekick II Discord Bot for a fair distribution of the bonuses.

License

Notifications You must be signed in to change notification settings

Stefan-Horst/CoCLeagueEvaluator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CoCLeagueEvaluator

Console App written in Java for creating a ranking of all participating players of the Clan War League (CWL) in Clash of Clans (CoC).
The input data is taken from the "league.csv" file. These files can be generated by the Sidekick II Discord bot.

Setup

Use the "/export number 7" Sidekick II bot command on your Discord server to download a .csv file containing the last seven wars (= the CWL). You can also export the complete clan war history and edit the file by hand so that it only contains the wars of the CWL.
Make sure to rename the file to "league.csv" (or change the expected file name in the code) for the program to recognize it and then move it in the same directory as the CoCLeagueEvaluator.jar file.
Finally, start cmd.exe, navigate to the directory containing the CoCLeagueEvaluator.jar file and run the command "java -jar CoCLeagueEvaluator.jar" for the ranking to be calculated.

Configuration

Change "league.csv" in Main.java if you prefer your .csv files to have another name.

To modify the ranking, change the values of the constants in Program.java to adjust the weights of the components.

Troubleshooting

Make sure the .csv file uses commas as separators. Semicolons etc. will not work and cause errors.

Sometimes the .csv file can be broken by player names containing commas or additional commas being inserted by encoding conversion problems. You will get an error in the program should this happen. There you can see which line in the .csv file caused the problem. Manually find and remove the wrong comma in that line and try to run the program again.

About

Creates a player ranking based on Clash of Clans CWL stats taken from Sidekick II Discord Bot for a fair distribution of the bonuses.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published