Skip to main content

shanten-tools

Fast calculation of shanten numbers in Japanese Mahjong.

Usage

>>> from shanten_tools import shanten
>>> import numpy as np
>>> hand = np.array([
>>>     3,1,1,1,1,1,1,1,3,
>>>     0,0,0,0,0,0,0,0,0,
>>>     0,0,0,0,0,0,0,0,0,
>>>     0,0,0,0,0,0,0], dtype=np.uint8)
>>> shanten(hand)
1
>>> hand = np.array([
>>>     3,1,1,1,1,1,1,1,3,
>>>     0,0,0,0,0,0,0,0,0,
>>>     0,0,0,0,0,0,0,0,0,
>>>     0,0,0,0,0,0,1], dtype=np.uint8)
>>> shanten_discard(hand)
array([2,1,2,2,1,2,2,1,2,
       0,0,0,0,0,0,0,0,0,
       0,0,0,0,0,0,0,0,0,
       0,0,0,0,0,0,1], dtype=uint64)

Notes

  • shanten number +1 is output

Metadata

Release files for shanten-tools 0.1.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for shanten-tools 0.1.8
File Size Uploaded
shanten_tools-0.1.8.tar.gz 660.3 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for shanten-tools 0.1.8
File
shanten_tools-0.1.8-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.9 PyPy 3.9 7.3 Linux glibc 2.17+ x86-64 Details
shanten_tools-0.1.8-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.8 PyPy 3.8 7.3 Linux glibc 2.17+ x86-64 Details
shanten_tools-0.1.8-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl PyPy 3.7 PyPy 3.7 7.3 Linux glibc 2.17+ x86-64 Details
shanten_tools-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.11 CPython 3.11 Linux glibc 2.17+ x86-64 Details
shanten_tools-0.1.8-cp310-none-win_amd64.whl CPython 3.10 none Windows x86-64 Details
shanten_tools-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 CPython 3.10 Linux glibc 2.17+ x86-64 Details
shanten_tools-0.1.8-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl CPython 3.10 CPython 3.10 macOS 11.0+ ARM64, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64 Details
shanten_tools-0.1.8-cp39-none-win_amd64.whl CPython 3.9 none Windows x86-64 Details
shanten_tools-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 CPython 3.9 Linux glibc 2.17+ x86-64 Details
shanten_tools-0.1.8-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl CPython 3.9 CPython 3.9 macOS 10.9+ x86-64, macOS 11.0+ ARM64, macOS 10.9+ universal2 (ARM64, x86-64) Details
shanten_tools-0.1.8-cp38-none-win_amd64.whl CPython 3.8 none Windows x86-64 Details
shanten_tools-0.1.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.8 CPython 3.8 Linux glibc 2.17+ x86-64 Details
shanten_tools-0.1.8-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl CPython 3.8 CPython 3.8 macOS 10.9+ x86-64, macOS 11.0+ ARM64, macOS 10.9+ universal2 (ARM64, x86-64) Details
shanten_tools-0.1.8-cp37-none-win_amd64.whl CPython 3.7 none Windows x86-64 Details
shanten_tools-0.1.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64 Details
shanten_tools-0.1.8-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl CPython 3.7 CPython 3.7 pymalloc macOS 11.0+ ARM64, macOS 10.9+ universal2 (ARM64, x86-64), macOS 10.9+ x86-64 Details

Total release size: 26.8 MB

Release files / shanten_tools-0.1.8.tar.gz

Download URL shanten_tools-0.1.8.tar.gz
Size 660.3 kB
Tags Source
SHA-256 checksum
How to use checksums
76d0bd55aa36a9e7ec11787bc5799bba8ec10e5c6b1dbbe8d1fc6a4ef7cc760b
BLAKE2b-256 checksum
How to use checksums
2d3fb6f7cccbe0a4589a187fddb3d7e4b4eb20e453156cadcc872f1bc34626b1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL shanten_tools-0.1.8-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags Linux glibc 2.17+ x86-64 PyPy 3.9 PyPy 3.9 7.3
SHA-256 checksum
How to use checksums
d0ac4442734dd589d762035319c1fc2da8e0eb7d88cf64c2332df98b2ff19c65
BLAKE2b-256 checksum
How to use checksums
9bddd3e420b84e0e68212130eae0b8cd6b42c89adcf42a31e8819d02591616f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL shanten_tools-0.1.8-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags Linux glibc 2.17+ x86-64 PyPy 3.8 PyPy 3.8 7.3
SHA-256 checksum
How to use checksums
e8a820493589833fd687f61f2f0d2a3a3e0a598133fc4339d3c2ea7811978e0d
BLAKE2b-256 checksum
How to use checksums
3126cae41d280527bc919da68dd98e6218e1fe7bdc4288e0b270a330d841ee0f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL shanten_tools-0.1.8-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags Linux glibc 2.17+ x86-64 PyPy 3.7 PyPy 3.7 7.3
SHA-256 checksum
How to use checksums
756cf523c6dff1707e1d6ba4cfb0d6e7eeb96fc4aea6179f8593973a3dfc7f85
BLAKE2b-256 checksum
How to use checksums
0045cb7503748a5599dda772826f22286cb6a8e1d246323caa0bea5e2a297816
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL shanten_tools-0.1.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.11 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
ba5fef7e0d6ae9a57b8914e77794512e50d39fbb219b421845d7b0c40c25a65b
BLAKE2b-256 checksum
How to use checksums
1c8afefa2bbfd5096532484ed4c83164abe1d03337c1b477d4aa90f7ad80496b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp310-none-win_amd64.whl

Download URL shanten_tools-0.1.8-cp310-none-win_amd64.whl
Size 823.6 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
0530752f8dc1b5b0a73c7b2724c91404d9123d8777cbcebc892f5203baeca9ba
BLAKE2b-256 checksum
How to use checksums
02374a3bce7d30122e2bff1a0c24fe86a47f4aa13fa9b99dca24bc7dd231a1fe
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL shanten_tools-0.1.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
dea9bac83c6a00ce5a2a30333fa7dd8bfe47627471dcd1fcc525c97e5e7aa059
BLAKE2b-256 checksum
How to use checksums
f0ffbacc63d1a1f8025a4e238eb5515da5d61499443e7fe3edc1aff9ee628165
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl

Download URL shanten_tools-0.1.8-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 2.2 MB
Tags CPython 3.10 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2caa1d86a223aa5613003da778362c293c3bd7d3158039ddef3a902957a12b9c
BLAKE2b-256 checksum
How to use checksums
050b76506fd380d3a167e1d56f4bcca595c1af28c92392a7ebd6f547fe06c705
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp39-none-win_amd64.whl

Download URL shanten_tools-0.1.8-cp39-none-win_amd64.whl
Size 824.1 kB
Tags CPython 3.9 Windows x86-64
SHA-256 checksum
How to use checksums
1b9e2ace7377a4e05f7a76fe794aaabc4717612427ef6648d41714fe1b212454
BLAKE2b-256 checksum
How to use checksums
b7c908569f291b4a47dbcda7b3567ada99913620da88dc110efcc83f2224d407
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL shanten_tools-0.1.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
1e471ba0f50a52f9f1108656f96644ea6977d73373d4fcefcbf2eae194e38593
BLAKE2b-256 checksum
How to use checksums
388e810eeb545418cd99c4783b111c70aa4a0a9f1f7bbbe96a2c90e8ff5ab865
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl

Download URL shanten_tools-0.1.8-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 2.2 MB
Tags CPython 3.9 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
64cc3fa25dcc9eefcff8440397917d4b19b31d21f0eb8fe80202bb07c18fd375
BLAKE2b-256 checksum
How to use checksums
1b66affe03b6a8f46536d3329d0d213306c315467422cfd817c980725e92b4a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp38-none-win_amd64.whl

Download URL shanten_tools-0.1.8-cp38-none-win_amd64.whl
Size 823.9 kB
Tags CPython 3.8 Windows x86-64
SHA-256 checksum
How to use checksums
d49e5e0e7cdd627d42930c676281375d9736f940d06788c4cc4921c8e2d59e3c
BLAKE2b-256 checksum
How to use checksums
3b09f57927aed38ecc155ec8d2ce2ef502e630466b6e6bb9b4c8a30b0b93d2e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL shanten_tools-0.1.8-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.8 Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
e592fed3e2187aff4da9262c264a6eb9ab117ec96744210bf5ae310ff1725296
BLAKE2b-256 checksum
How to use checksums
2a439012810cebe1cef3f2e704c165e846d728dfc9ef56eaeb5bf0abf61f603c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl

Download URL shanten_tools-0.1.8-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 2.2 MB
Tags CPython 3.8 macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
54dcdfbb726e13e952d19cb2fcecb0f8a5c01455d112d529fba674add6ad17f5
BLAKE2b-256 checksum
How to use checksums
0d88a549940e0b73a46f5f8652cb333b1e195f5eba0e5ce0924bbdb957749aa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp37-none-win_amd64.whl

Download URL shanten_tools-0.1.8-cp37-none-win_amd64.whl
Size 823.9 kB
Tags CPython 3.7 Windows x86-64
SHA-256 checksum
How to use checksums
1e7301736942b02ccd40079ad19ba34b3bcc8bc6c31ff92634fa541bf1a4daaa
BLAKE2b-256 checksum
How to use checksums
90144d9b678499c78a288e0f05c29c09c1b3b50fbe3a6f3ea41133ef53e8dc3b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL shanten_tools-0.1.8-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.7 MB
Tags CPython 3.7 CPython 3.7 pymalloc Linux glibc 2.17+ x86-64
SHA-256 checksum
How to use checksums
21a95c312a28b41084092410e0f2705cf48d563f4a63bb15788adebfe9af28db
BLAKE2b-256 checksum
How to use checksums
34837aadd72c70a82ef5aa9c4e5fcae1aca76ac2d3fec9a018082f4f86f04cb6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release files / shanten_tools-0.1.8-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl

Download URL shanten_tools-0.1.8-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Size 2.2 MB
Tags CPython 3.7 CPython 3.7 pymalloc macOS 10.9+ universal2 (ARM64, x86-64) macOS 10.9+ x86-64 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
e646bafe00da80a926dbc3c6c9d45bb8c6f3c36a7578da429b919bfcc4bc908b
BLAKE2b-256 checksum
How to use checksums
5480201fb3ec4fedb7a2e24f890471c9a1619806a0f680c4c6ae8c415c91152e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/0.13.6

Release history Release notifications | RSS feed

This release

0.1.8 This release

17 release files

0.1.7

17 release files

0.1.6

17 release files

0.1.5

17 release files

0.1.4

17 release files

0.1.3

15 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page