### The Maths

You may be wondering how your votes affect the overall rankings on the site, allow us to explain...

Every Fighter has a hidden rating that the general public never see. Every time you choose the winner of a Fight, the server uses the ELO Algorithm to update each Fighters rankings. The Fighters are listed in order of rating, and voila! We have our new Top10.

I'm intrigued, tell me more...

How about we do an example? You're given a fight between Gandalf and Han Solo, Gandalf has a hidden rating of 1720 and Han's is 1550. First, the algorithm calulates the probability of each Fighter winning based on these ratings.

Probability Gandalf Wins = $$\frac{1}{1 + 10^{\frac{\text{Hans Rating - Gandalfs Rating}}{400}}} = 0.727$$

Probability Han Wins = $$\frac{1}{1 + 10^{\frac{\text{Gandalfs Rating - Hans Rating}}{400}}} = 0.273$$

Now, lets pretend that you say Gandalf will win (obviously he would). He gains $$20(1 - 0.727) = 5.46$$ points onto his rating and Han loses the same amount.
In the unlikely even that Han won (is that even possible?..). He gains $$20(1 - 0.273) = 14.54$$ points onto his rating and Gandalf loses that amount.

Notice that if the Fighter with the lower rating wins, he gains more points than if the Fighter with the higher rating wins. This process happens after every fight that takes place and it is what ensures TheFightClub displays a fair representation of the public's opinion.

### The Team

This website was created by James Campbell, Sam Ewen, Samuel Dunkley and Matt Jones as part of a project for their degree. They all currently study Mathematics at Cardiff University and have top banter because they are top lads.