Skip to main content

Multiplayer Rating System. No Friction.

Project description

Multiplayer Rating System. No Friction.

A faster and open license asymmetric multi-team, multiplayer rating system comparable to TrueSkill.

Stand With Ukraine

Tests codecov Documentation Status DOI badge

Description

PyPI - Python Version Conda (channel only) PyPI - Implementation

Discord

In the multifaceted world of online gaming, an accurate multiplayer rating system plays a crucial role. A multiplayer rating system measures and compares players' skill levels in competitive games to ensure balanced match-making, boosting overall gaming experiences. Currently, TrueSkill by Microsoft Research is a notable rating system, but gaming communities are yearning for faster, more adaptable alternatives.

Here are some, but not all, of the reasons you should drop TrueSkill and bury Elo once and for all:

  • Multiplayer.
  • Multifaction.
  • Asymmetric faction size.
  • Predict Win, Draw and Rank Outcomes.
  • Per Player Weights
  • Partial Play
  • 150% faster than TrueSkill.
  • 100% Pure Python.
  • 100% Test Coverage.
  • CPython and PyPy Support.
  • 5 Separate Models.
  • Fine-grained control of mathematical constants.
  • Open License
  • Accuracy on par with TrueSkill.

Installation

pip install openskill

Usage

The official documentation is hosted here. Please refer to it for details on how to use this library.

Limited Example

>>> from openskill.models import PlackettLuce
>>> model = PlackettLuce()
>>> model.rating()
PlackettLuceRating(mu=25.0, sigma=8.333333333333334)
>>> r = model.rating
>>> [[a, b], [x, y]] = [[r(), r()], [r(), r()]]
>>> [[a, b], [x, y]] = model.rate([[a, b], [x, y]])
>>> a
PlackettLuceRating(mu=26.964294621803063, sigma=8.177962604389991)
>>> x
PlackettLuceRating(mu=23.035705378196937, sigma=8.177962604389991)
>>> (a == b) and (x == y)
True

Support

If you're struggling with any of the concepts, please search the discussions section to see if your question has already been answered. If you can't find an answer, please open a new discussion and we'll try to help you out. You can also get help from the official Discord Server. If you have a feature request, or want to report a bug please create a new issue if one already doesn't exist.

References

This project is originally based off the openskill.js package. All of the Weng-Lin models are based off the work in this wonderful paper or are the derivatives of algorithms found in it.

  • Julia Ibstedt, Elsa Rådahl, Erik Turesson, and Magdalena vande Voorde. Application and further development of trueskill™ ranking in sports. 2019.
  • Ruby C. Weng and Chih-Jen Lin. A bayesian approximation method for online ranking. Journal of Machine Learning Research, 12(9):267–300, 2011. URL: http://jmlr.org/papers/v12/weng11a.html.

Implementations in other Languages

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

openskill-6.0.1.tar.gz (44.2 kB view details)

Uploaded Source

Built Distribution

openskill-6.0.1-py3-none-any.whl (45.7 kB view details)

Uploaded Python 3

File details

Details for the file openskill-6.0.1.tar.gz.

File metadata

  • Download URL: openskill-6.0.1.tar.gz
  • Upload date:
  • Size: 44.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for openskill-6.0.1.tar.gz
Algorithm Hash digest
SHA256 704e0e29452c94b41cdf020411ee6fcaf72c4eeb546f50f7266ba5a15d1bf821
MD5 e74205daf06484598073747a44e477c9
BLAKE2b-256 f786b2ac8cddd5e9156772949d700ca277cf2ae489e3e8fd9c4f96a417cfd899

See more details on using hashes here.

File details

Details for the file openskill-6.0.1-py3-none-any.whl.

File metadata

  • Download URL: openskill-6.0.1-py3-none-any.whl
  • Upload date:
  • Size: 45.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for openskill-6.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 efb6372816953686f2d455be8156848541751ff25c6524370c231e0e0045b064
MD5 1b6c80a09ec79e9325063d7ef9d0aaa8
BLAKE2b-256 545d4c1efb5971adabc1cb93a53a91f2e8be017a8026963fe3925abd133111b7

See more details on using hashes here.

Supported by

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