Coder Social home page Coder Social logo

iain / elo Goto Github PK

View Code? Open in Web Editor NEW
164.0 164.0 38.0 152 KB

The Elo rating system is a method for calculating the relative skill levels of players in two-player games such as chess and Go.

Home Page: http://iain.nl

License: MIT License

Ruby 100.00%

elo's People

Contributors

drewb avatar fedenusy avatar h0lyalg0rithm avatar iain avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

elo's Issues

Non-threadsafe cache without memory bounds

My game has thousands of daily active users. Elo worked well for a while, but then I started running into issues:

  1. Elo::Helper#initialize keeps adding to a class instance variable, the @all array. This makes Elo incompatible with multi-threaded environments (eg JRuby).

  2. The @all array never lets go of references, leading to memory bloat.

I resolved both issues by removing the @all array. Maintaining that array (or something like it) seems outside the scope of this gem's responsibilities.

I'll submit a PR shortly.

Rolling back results

This might not be appropriate, but if say you have a match that is subsequently removed and there have been more recent matches involving the players, is there a simple way to fix the elo scores?

elo-rails gem?

Hi there,

I have a question about your gem and couldn't find another way to ask it, I hope this is ok:

I'm looking into using your gem - thanks for putting it together! I would like to use it with rails and have the classes descendants of activerecord. Any suggestions on how to modify it to work with rails? I'm sure I could read the source code a bit more and come up with something, but I figured I'd see if you had any input before I started.

I might be able to fork and make those changes if you're interested in interested in putting out an 'elo-rails' gem.

Let me know: alexkbird (at) gmail (dot) com

Cheers,
Alex

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.