Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.861.606 Times

Chess::Elo 0.02

  Date Added: August 15, 2010  |  Visits: 665

Chess::Elo

Report Broken Link
Printer Friendly Version


Product Homepage
Download (79 downloads)



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..

Requirements: No special requirements
Platforms: Linux
Keyword: Alice Bob Chesselo Elo If A Libraries Perl Module Programming Rating Result
Users rating: 0/10

License: Freeware Size: 4.1 KB
USER REVIEWS
More Reviews or Write Review


CHESS::ELO RELATED
Libraries  -  Math::BigInt::Calc 1.87
Math::BigInt::Calc is a pure Perl module to support Math::BigInt. SYNOPSIS Provides support for big integer calculations. Not intended to be used by other modules. Other modules which sport the same functions can also be used to support...
194.56 KB  
Libraries  -  Rsync::Config::Parser 0.3.1
Rsync::Config::Parser is a simple Perl module for Rsync configuration parser. SYNOPSIS use Rsync::Config::Parser; use Rsync::Config; sub main { my $parser = new Rsync::Config::Parser(); my $conf = $parser->parse(/etc/rsyncd.conf); }...
22.53 KB  
Libraries  -  Tangram 2.10
Tangram is a simple Perl module that can store pure objects in standard relational databases. Tangram is an object-relational mapper. It is orthogonal, meaning that it does not require anything of the objects stored in it (other than the common...
153.6 KB  
Libraries  -  Tk::SlideShow 0.07
Tk::SlideShow is a Tk Perl module for building slide-like presentations. This module provide Perl with the ability to : - build interactive and visual presentations with Perl and Tk, - build simple slide simply, - build sophisticated slides...
81.92 KB  
Libraries  -  File::PathList 0.02
File::PathList is a Perl module that can find a file within a set of paths (like @INC or Java classpaths). SYNOPSIS # Create a basic pathset my $inc = File::PathList->new( @INC ); # Again, but with more explicit params my $inc2 =...
26.62 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  Net::Lyskom 1.1
Net::Lyskom is a Perl module used to talk to LysKOM servers. SYNOPSIS use Net::Lyskom; $a = Net::Lyskom->new(); $conf = 6; $a->login(pers_no => 437, password => "God", invisible => 1) or die "Failed to log in: $a->err_stringn"; $b =...
23.55 KB  
Libraries  -  Apache::Wyrd 0.94
Apache::Wyrd is a Perl module for HTML embeddable perl objects under mod_perl. Apache::Wyrd is the core module in a collection of interoperating modules that allow the rapid object-oriented development of web sites in Apaches mod_perl...
174.08 KB  
Libraries  -  Convert::Translit 1.03
Convert::Translit, transliterate, build_substitutes is a Perl module for string conversion among numerous character sets. SYNOPSIS use Convert::Translit; $translator = new Convert::Translit($result_chset); $translator = new...
79.87 KB  
Libraries  -  OpenGeoDB Perl module 0.4
OpenGeDB Perl module is a module to access the OpenGeoDB database and calculate all ZIP codes in a certain radius..
3.07 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.11.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB