No project description provided
Project description
shanten-tools
Fast calculation of shanten numbers in Japanese Mahjong.
Usage
>>> from shanten_tools import shanten
>>> hand = [
>>> 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]
>>> shanten(hand)
0
Notes
sum(hand)
must be $3n+1$ or $3n+2$ with $n=0,1,2,3,4$.- 国士無双 and 七対子 is not supported.
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
shanten_tools-0.1.5.tar.gz
(707.8 kB
view hashes)
Built Distributions
Close
Hashes for shanten_tools-0.1.5-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | da7110340dc34276034425e768fbf8ca4dcd45021e01a2f2a3dba664e1ffbdb1 |
|
MD5 | 6adeeae58168d4f5e4c4178fe7e25aad |
|
BLAKE2b-256 | c660c6d781a8ca1869956c2bab6e3ae0d5b44c09d10c0e2792347259e5f36000 |
Close
Hashes for shanten_tools-0.1.5-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | af479bfcf211f31b97b13ba572f0eb9e2412b7e250b12b2a38cc5af403c6e5e5 |
|
MD5 | 17553175ac93d65182b94cf928b08914 |
|
BLAKE2b-256 | 1cbfad2c993cee72bf8f07a1183aed7d63e191f81c3a0f34467bc4db43c26bea |
Close
Hashes for shanten_tools-0.1.5-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 482170539297527ed073b95a2a0106b36ed70ba8a9894d745ec7c2e5524a480a |
|
MD5 | ab19738abc16c3fa604951099d7142d6 |
|
BLAKE2b-256 | cdb914bd70d00e16fea0c321ff7ef7237a495fbcef24d7b2fa32b4866997fb1a |
Close
Hashes for shanten_tools-0.1.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ea94b9f0afc4b660f5ff71801369824e2ee0c2ba3e18cebaec072cfcc28c6d6 |
|
MD5 | 85f55c68962801aef77de23ea25e3436 |
|
BLAKE2b-256 | 54cf1577a112ccec61d553ca6bfec64fa26d03ab956cc20088a1223ce1e7e516 |
Close
Hashes for shanten_tools-0.1.5-cp310-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fbf4294622612b5e6fd1ad8e48a4151eb6e17ed83ab7771522d0f38c0c7f3bda |
|
MD5 | 5074b88ac03d23b84ad7bbe64439e3d5 |
|
BLAKE2b-256 | 554b54198560e486543678b5f30834f9d4e8a35b4b6c247918524a48830118da |
Close
Hashes for shanten_tools-0.1.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e2a7fa7b863bdfb7bc0cbcd8c9b867c8676d2c40b142011106e322c8ad993f9 |
|
MD5 | 59837e5ac559aefaffe7900f35309521 |
|
BLAKE2b-256 | efd955bc420ebebd5e683c2a68d3c0a5197c6258cf92606e233e846837f2e8e0 |
Close
Hashes for shanten_tools-0.1.5-cp310-cp310-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cb954fbafce0ad2265e20da0418464418c290503c01c4e33de42e3a4f8fde091 |
|
MD5 | 3bdc3b6bfe0d517e9f4f26674308cd63 |
|
BLAKE2b-256 | 7ae41c0ff1b3ebab8d15b9dd58faafbcf0a33a05dd6bb7aaaa7c997bd0c8f64e |
Close
Hashes for shanten_tools-0.1.5-cp39-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 12c8fdc124fbc485bcfb743503b394a4b06888239acac471c3862821b4ab07d2 |
|
MD5 | b63d2b02f6b3806f7ff62320256d7453 |
|
BLAKE2b-256 | 958714c9f9af090dd4246283f54517f169600d504b97e333d01f915406fa0f65 |
Close
Hashes for shanten_tools-0.1.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 095b0b20af4164de5aac7aa79e61e14be8f799f7bab1e10377304b8e795133e2 |
|
MD5 | 0b13085a1a8df5e8aa8648487c3bf10b |
|
BLAKE2b-256 | 8b0c15e2d7c3ca5ac1b2fa530d8fd886370388a9e47bdaea72801f5bd20aa417 |
Close
Hashes for shanten_tools-0.1.5-cp39-cp39-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 580193d6429943cef43bf042be76228c079e7e08f170002c124712ba6e7425b5 |
|
MD5 | e89e8e84406b3178f6720f217eb023e4 |
|
BLAKE2b-256 | 3edf3bbe067bb69675b0e64aeb975068b1a88ca119fcdf10f20d98c0dcdff670 |
Close
Hashes for shanten_tools-0.1.5-cp38-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d4538a8ad2a658677199684c67346805b03e2e0902bb581359be5c1f3c2bf4ff |
|
MD5 | a525ca87ba172201d0921847da816f90 |
|
BLAKE2b-256 | 4572334b47866ca262339a2245188c90e26d065e592affe61ac2fb20553d94b2 |
Close
Hashes for shanten_tools-0.1.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ea53ef009f947517d83e774eaeacd6dcb0e5c2e2b28cbdb611b2d81e6e3b8fdc |
|
MD5 | f9a56042d97e6ad027c44417b9954403 |
|
BLAKE2b-256 | 8c736092bf302c3d4d5520912db7861a9e7f94e723cb671a8ecc93cbcc748c4e |
Close
Hashes for shanten_tools-0.1.5-cp38-cp38-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9158d25a16a434f12d53b2b02bc186a5e0c56d0b1d578a6504c0660c4a60442a |
|
MD5 | 65089385f3441b78ba86b2b5d6ff1e08 |
|
BLAKE2b-256 | bacdef7aa5a592d5a12b3a21a9df4d9b487c92e6605a55ae62a9340b4a5f46d8 |
Close
Hashes for shanten_tools-0.1.5-cp37-none-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcaa62f2299d6c19f2d84c6e0b915017be3bf45a2bf8cc14c4aba3cd2163460c |
|
MD5 | fcb062ac4c475a7f4d6fc26cbb2f3349 |
|
BLAKE2b-256 | f4a9c5782dbceb0750a30f2dd4813627ef74387a28294df454302985ef77b460 |
Close
Hashes for shanten_tools-0.1.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ed4934d9361a4cea438114e6374c496cbcba09a8ea444afc5e3d455c45a6906 |
|
MD5 | dd866631d6f1ab20ce2c5bbe859faee3 |
|
BLAKE2b-256 | 42ad6c810d3b740df90e29d5e2859ebe6bd3e16d336de747f9ff6bf6f47fa956 |
Close
Hashes for shanten_tools-0.1.5-cp37-cp37m-macosx_10_9_x86_64.macosx_11_0_arm64.macosx_10_9_universal2.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b0c9aeab39690a5a4fbf1ce32da892c4d608e6e1fd7bda3ab449781d806910fa |
|
MD5 | 769ed0781dbd5b7557754a1a1052b0ed |
|
BLAKE2b-256 | f368ec348c893706c111593dc1e2f43164f9205c25bff0291d162f92e4e15b46 |