This is a gem for multiplayer elo calculations. It supports ties and 2 or more players.
Add this line to your application's Gemfile:
gem 'multiplayer_elo'And then execute:
$ bundle
Or install it yourself as:
$ gem install multiplayer_elo
players = [ {id: 1, elo: 1500, place: 1}, {id: 2, elo: 1500, place: 2},
{id: 3, elo: 1500, place: 3}, {id: 4, elo: 1500, place: 4} ]
results = @elo_manager.evaulate_results(players)- Fork it ( https://github.com/johnmarks/multiplayer_elo/fork )
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create a new Pull Request