Algorithm::Elo

Implementation of the Elo chess rating system

NAME

Algorithm::Elo

SYNOPSIS

use Algorithm::Elo;

my ( $player-a-score, $player-b-score ) = 1_600, 1_600;

( $player-a-score, $player-b-score ) = calculate-elo($player-a-score, $player-b-score, :left);

DESCRIPTION

This module implements the Elo rating system, commonly used to rate chess players.

SUBROUTINES

calculate-elo(Int right, :left, :right, :draw)

Given two current ratings and the result of a match (:left if the left player wins, :right if the right player wins, :draw for a draw), return two new ratings for the left and right players.

SEE-ALSO

Elo Rating System

AUTHORS

  • Rob Hoelz

  • Raku Community

COPYRIGHT AND LICENSE

Copyright (c) 2015 - 2017 Rob Hoelz

Copyright (c) 2024 Raku Community

This library is free software; you can redistribute it and/or modify it under the MIT license.

Algorithm::Elo v0.1.1

Implementation of the Elo chess rating system

Authors

  • Rob Hoelz
  • Raku Community

License

MIT

Dependencies

Test Dependencies

Provides

  • Algorithm::Elo

Documentation

The Camelia image is copyright 2009 by Larry Wall. "Raku" is trademark of the Yet Another Society. All rights reserved.