Commit Graph
6 Commits
Author SHA1 Message Date
swaits fbce23608e add p_win method and misc cleanup and refactoring
* change g2rating,etc. to attr_reader (instead of attr_accessor)
* move @dvolatility into DVOL constant
* add p_win
* make comparison operator use p_win(self,other)
* use << when adding to results array instead of .push()
* improved comments; mostly from Glicko2 document
* minor variable renaming to improve readability
* clear results array after ratings are finally updated (no functional change, just cleaner)
2011-12-19 17:13:45 -08:00
swaits 59537258f7 refactoring (some formatting, mostly ruby'ization) 2011-12-19 15:23:11 -08:00
swaits b240814147 update() now handled case correctly when a player hasn't participated in a session
* when a player has no results, deviation is slightly increased properly now
2011-12-19 15:10:38 -08:00
swaits 723952b178 formatting updates 2011-04-26 18:03:21 -07:00
swaits 38529d8e74 split glicko2 test out into separate file. glicko2 now ready to be included in application (xmlrate for instance) 2005-05-10 23:31:40 +00:00
swaits 63f8b0a13c did some renaming of main dirs (apps, libs, etc.) 2005-05-09 22:53:48 +00:00