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 leetcode-local-runner

or with Poetry:

$ poetry add leetcode-local-runner

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.1.tar.gz (4.2 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.1-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: elo_viz-0.0.1.tar.gz
  • Upload date:
  • Size: 4.2 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.1.tar.gz
Algorithm Hash digest
SHA256 b4f39a63fed12b6c5cd5fd8282df4c24973557c826ddf03a93be90d10a14e1b1
MD5 49061437f00d763f547dd696901ceffa
BLAKE2b-256 1c5b858ed2d55bb9f1632ca384735fa3bbf5f7387e43441cfdfc3e5eaa2b0693

See more details on using hashes here.

Provenance

The following attestation bundles were made for elo_viz-0.0.1.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.1-py3-none-any.whl.

File metadata

  • Download URL: elo_viz-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 5.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d9c3be013efc7546b9af78cbda4b976fd768891ec9784fa899367fd752d89558
MD5 15dbccf819d4d42c1fefd8b8424ec902
BLAKE2b-256 cf736d18d23db051b24b468d4a1619b36010e620da2b305b0dddfea6066600cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for elo_viz-0.0.1-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