0.01
No commit activity in last 3 years
No release in over 3 years
Provides sophisticated yet easy to understand ranking system with minimum changes to the system
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
>= 0
 Project Readme

ActsAsElo

What is it?

Provides sophisticated yet easy to understand ranking system with minimum changes to the system. Elo ranking system is heavily used in tournaments, player rankings in chess, sports, leader boards, multiplayer games, ranking of test questions, tasks etc.

Read more about it on wiki

Usage

acts_as_elo is very easy to use

  1. Install: gem install acts_as_elo
  2. Add include Acts::Elo and acts_as_elo
  3. Call any of the 3 methods: elo_win!, elo_lose! and elo_draw!

Example

class Player
  include Acts::Elo
  acts_as_elo
end

bob, jack = Player.new, Player.new
bob.elo_rank # => 1200
jack.elo_rank # => 1200

bob.elo_win!(jack)
bob.elo_rank # => 1215
jack.elo_rank # => 1985

License

Released under the MIT License. See the LICENSE file for further details.