/Piltover-s-Most-Wanted

This website is designed to pick the the most banned champions from the recent URF mode. Calculate how many times they’ve been banned, why they are banned, and collect player to player champion mastery while displayed in a fun, unique environment.

Primary LanguageJavaScript

Piltover's Most Wanted

This website is designed to pick the top banned champions from ranked games that occurred during the recent URF mode. The website calculates how many times they’ve been banned and collects player to player champion mastery while displayed in a fun, unique environment.

Riot API Challenge

See the Riot API Challenge here. View the API Challenge rules here.

Testing

You can see this live by running it through rawgit.

The database is powered by Firebase can you can browse it live here.

Code Logic

Code logic diagram I suck at drawing, so sorry if it looks bad. I explain it below anyways.

I've selected the URF weekend of 4/22 - 4/25 because most of the people play URF (obviously). Only serious people play ranked that weekend. So, this way (theoretically) I would eliminate most of troll games and such. I manually inputted 1 challenger and 1 master play into my database and let my script run (it's commented out now) and ran a tree based search algorithm. Essentially the way it works is that I look at all his ranked games that weekend and find all the other summoners in those games. Then I go and get all the games that weekend for those people and find all the players in those games and then find people in those games and so on until all I get is duplicates. Theoretically, this should find every player of ranked that weekend, because sometime someone has played with someone that played with someone, etc. Now each game I go through, I also log each banned champion and how many times (increment) they were banned. Then for each champion I go through every summoner I looked previously and get champion mastery points and level. Afterwards I generate the average for NA (it's hardcoded it for the duration of the challenge, I'll open it up afterwards) and show on the summoner icon along with ban percentage.

Frameworks used

jquery-circle-progress