Skip to main content

Elo python package to simulate matches between players, and compare their elo ratings after each match, and visualize it.

Project description

Overview

Elo python package to simulate matches between players, and compare their elo ratings after each match, and visualize them. You can use it to simulate rankings of Chess players.

Installation

Install using pip:

$ pip install elo-viz

or with Poetry:

$ poetry add elo-viz

Usage

Create Players

import uuid
from elo_viz import Match, Player

magnus_carlsen = Player(id=uuid.uuid4().hex, name='Magnus Carlsen', rating=2833)
hou_yifan = Player(id=uuid.uuid4().hex, name='Hou Yifan', rating=2633)
gukesh_d = Player(id=uuid.uuid4().hex, name='Gukesh Dommaraju', rating=2777)
divya_d = Player(id=uuid.uuid4().hex, name='Divya Deshmukh', rating=2490)

Setup Matches

m1 = Match(match_id=uuid.uuid4().hex, player1=magnus_carlsen, player2=gukesh_d)
m1.update_result(winner=magnus_carlsen.id)

Check results

print(m1.player1)

Output

Player: Magnus Carlsen Rating: Rating: 2883.0 Win %: 100.0

Requirements

  • Python >= 3.13

The version of the base environment I had installed poetry in.

Will update this so that any Python 3 version will work.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

elo_viz-0.0.2.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

elo_viz-0.0.2-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file elo_viz-0.0.2.tar.gz.

File metadata

  • Download URL: elo_viz-0.0.2.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for elo_viz-0.0.2.tar.gz
Algorithm Hash digest
SHA256 935abd8288ffedfa59162ed55fed1e20731a1e6b3b04fc37d100e50d2906ea2d
MD5 132428d8ef7191344b6a4b75d7b74e7e
BLAKE2b-256 48ef3c0855783b51ea34e7714d9a473d71fc51733f7bbae49250b43c36ef02fb

See more details on using hashes here.

Provenance

The following attestation bundles were made for elo_viz-0.0.2.tar.gz:

Publisher: publish.yml on shenoy-anurag/elo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file elo_viz-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: elo_viz-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for elo_viz-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ee66806422ccab6eb687de98db11f86a6f86d539bb848fc9b5679280d57ceaaf
MD5 c5d12d42f9eb5dc63b5b83ffc021ab39
BLAKE2b-256 6953881623de77031f2c74aac36370dd7ea90e271b67384483a7bf343cf0a6ca

See more details on using hashes here.

Provenance

The following attestation bundles were made for elo_viz-0.0.2-py3-none-any.whl:

Publisher: publish.yml on shenoy-anurag/elo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page