Skip to main content

A set of development tools for go/baduk/wéiqí projects.

Project description

tenuki

A set of development tools for go/baduk/wéiqí projects.

Installation

Use pip or your favorite package manager to install tenuki:

pip install tenuki

Rank

Rank class is a representation of a player's rank.

from tenuki.rank import Rank

rank_1 = Rank.parse("1d")
rank_2 = Rank.parse("1k")

assert rank_1 > rank_2
assert rank_1.diff(rank_2) == 1
assert rank_1 + 8 == Rank.parse("9d")

EGF

GoR <-> Rank

Convert between GoR and Rank:

from tenuki.rank import Rank
from tenuki.egf import gor_to_rank, rank_to_gor

assert gor_to_rank(2100) == Rank.parse("1d")
assert rank_to_gor(Rank.parse("1d")) == 2100

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

tenuki-0.2.0.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

tenuki-0.2.0-py3-none-any.whl (3.2 kB view hashes)

Uploaded Python 3

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