GitXplorerGitXplorer
p

elo-ratings

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
0bf8a72221eb3ec2e4787a5b250bfd4883da4af3

Little bit of usage doc

pphillc committed 14 years ago
Unverified
474289ce099ea7492ff0da261d96abd70cd81e06

Prepping to try a gem release

pphillc committed 14 years ago
Unverified
3568f7f8c2e763239ab911376f123d319a1dd05f

Version bump to 0.0.1

pphillc committed 14 years ago
Unverified
9304d532ff9ca86a8328f2469b80e2c64ea464ab

Finished some interface methods for the results class

pphillc committed 14 years ago
Unverified
809fcd9b953ff66bf522e5b41ec4d66562d69877

Finish off directory structure of gem renaming

pphillc committed 14 years ago
Unverified
3c24f0c2c1ff1149c46cdd22cb4adb53c38cfdb5

Realized that I probably shouldn't call this gem the same name as the tool I am wrapping

pphillc committed 14 years ago

README

The README file for this repository.

= EloRatings

This is a ruby interface to the c++ classes of Remi Coulom's Bayeselo, a tool for estimating Elo ratings.

= Bayeselo

For more information or information on Bayeselo, see http://remi.coulom.free.fr/Bayesian-Elo/ You can reach the website of Remi Coulom, the author of Bayeselo, at http://remi.coulom.free.fr

Bayeselo is protected under the terms of the GNU GPL. See http://www.gnu.org/copyleft/gpl.html It is bundled under the ext directory of this project

= EloRatings

The goal of this gem was to provide a simple interface to Bayeselo in ruby. Advantage is set to zero (no advan advantage modifier to player 1) There has currently been no attempt to reproduce all functionality provided by Bayeselo.

Only tested in ruby 1.9.1 Ruby 1.9.2 throws some form of bus error at end of execution.

= Usage

require 'elo_ratings' ratings = EloRatings::Results.new ratings.add_game "player 1", "player 2", EloRatings::Player1Win ratings.add_game "player 1", "player 2", EloRatings::Player2Win ratings.add_game "player 3", "player 2", EloRatings::Player1Win

ratings.count_games_for "player 2" => 3 ratings.elo_for "player 2" => -37 ratings.elo_for "player 3" => 86

== Copyright

Copyright (c) 2010 phillc. See LICENSE.txt for further details.