Chess::Elo 0.02
Sponsored Links
Chess::Elo 0.02 Ranking & Summary
File size:
0.004 MB
Platform:
Any Platform
License:
Perl Artistic License
Price:
Downloads:
1038
Date added:
2007-01-04
Publisher:
Terrence Brannon
Chess::Elo 0.02 description
Chess::Elo is a Perl module to calculate Chess "Elo" ratings.
SYNOPSIS
use Chess::Elo qw(:all);
# Alice is going to thump Bob...
my ($alice_elo, $bob_elo) = (2100, 1200);
# Oh no, Alice lost to Bob!
my $result = 0; # 0.5 for draw, 1 for win
my @new_elo_alice_bob = elo ($alice, 0, $bob);
use Data::Dumper; warn Dumper(@new_elo_alice_bob);
[
2068.17894295388, # My, Alice took a hit on her rating :)
1231.82105704612 # Bob is setting pretty
];
This module provides a single function, elo which allows one to calculate individual ratings based on performance. Typically, a player is given an initial provisional rating of 1600 points. In all cases, one gains and loses points as a function of the playing strength of both parties and the result of their encounter.
The formula used is the same one used at magi-nation:
http://www.magi-nation.com/Tournaments/ratingsfaq.htm
Or, quantitatively speaking:
A2 = A1 + 32 ( G - ( 1 / ( 1 + 10 ** ( ( B1 -A1) / 400 ) ) ) )
A2 is Alices post-game rating
A1 is Alice rating before the game against Bob
B1 is Bobs rating before the game against Alice
G is the game result, in this case:
1, if A beats B
0, if A loses to B
0.5, if A draws to B
METHODS
($new_a, $new_b) = elo($elo_a, $result, $elo_b)
This function takes 3 arguments describing the result of a person with rating $elo_a competing with the person with rating $elo_b. The result argument is from the perspective of person A. Thus if A won $result is 1. If A lost, $result is 0. If A drew, $result is 0.5.
EXPORT
None by default, elo upon request.
SYNOPSIS
use Chess::Elo qw(:all);
# Alice is going to thump Bob...
my ($alice_elo, $bob_elo) = (2100, 1200);
# Oh no, Alice lost to Bob!
my $result = 0; # 0.5 for draw, 1 for win
my @new_elo_alice_bob = elo ($alice, 0, $bob);
use Data::Dumper; warn Dumper(@new_elo_alice_bob);
[
2068.17894295388, # My, Alice took a hit on her rating :)
1231.82105704612 # Bob is setting pretty
];
This module provides a single function, elo which allows one to calculate individual ratings based on performance. Typically, a player is given an initial provisional rating of 1600 points. In all cases, one gains and loses points as a function of the playing strength of both parties and the result of their encounter.
The formula used is the same one used at magi-nation:
http://www.magi-nation.com/Tournaments/ratingsfaq.htm
Or, quantitatively speaking:
A2 = A1 + 32 ( G - ( 1 / ( 1 + 10 ** ( ( B1 -A1) / 400 ) ) ) )
A2 is Alices post-game rating
A1 is Alice rating before the game against Bob
B1 is Bobs rating before the game against Alice
G is the game result, in this case:
1, if A beats B
0, if A loses to B
0.5, if A draws to B
METHODS
($new_a, $new_b) = elo($elo_a, $result, $elo_b)
This function takes 3 arguments describing the result of a person with rating $elo_a competing with the person with rating $elo_b. The result argument is from the perspective of person A. Thus if A won $result is 1. If A lost, $result is 0. If A drew, $result is 0.5.
EXPORT
None by default, elo upon request.
Chess::Elo 0.02 Screenshot
Chess::Elo 0.02 Keywords
Elo 0.02
to calculate
Perl module
elo
result
alice
bob
rating
b
Chess::Elo
ChessElo
Chess::Elo 0.02
Libraries
Programming
Bookmark Chess::Elo 0.02
Chess::Elo 0.02 Copyright
WareSeeker periodically updates pricing and software information of Chess::Elo 0.02 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Chess::Elo 0.02 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed
Featured Software
Want to place your software product here?
Please contact us for consideration.
Contact WareSeeker.com
Related Information
Related Software
Chess::Game is a class to record and validate the moves of a game of chess. Free Download
PerlIO is a Perl module created to load on demand PerlIO layers and root of PerlIO::* name space. Free Download
StealIt is a service menu to take ownership on selected file/directory. Free Download
Ruby Chess is a chess game implemented in Ruby using GTK2. Free Download
Chess::FIDE is a Perl extension for FIDE Rating List. Free Download
Games::Score is a Perl module to keep track of score in games . Free Download
Games::Chess Perl module represent chess positions and games. Free Download
Test::Version is a Perl module that has the role to check for VERSION information in modules. Free Download
Latest Software
Popular Software
Favourite Software