Calculates Can't Stop turn scores.
Project description
Can't Stop strategy helper
Using the algorithm from Solitaire Laboratory,
cant-stop tells you if you should stop or continue your current turn of the dice game
Can't Stop.
Usage
cant-stop takes a list of strings of the format <roll>x<count> where <roll> is the roll column
and <count> is the number of tokens placed there this turn so far. For example, if you rolled a 1,
1, 2, and 3, and chose columns 2 and 5:
~$ cant-stop 2x1 5x1
INFO:cant_stop.cli:Your score is 18
and if you next rolled a 1, 1, 6, and 6:
~$ cant-stop 2x2 5x1 12x1
INFO:cant_stop.cli:Your score is 36
Time to stop!
Installation
cant-stop is available on PyPI:
~$ pip install python-cant-stop
...
~$ cant-stop -h
Installation from source
This assumes you have git, Python 3.9+, and poetry installed already.
~$ git clone git@gitlab.com:henxing/cant_stop.git
~$ cd cant_stop
cant_stop$ poetry install
...
cant_stop$ poetry run wordle-helper -h
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file python-cant-stop-0.2.0.tar.gz.
File metadata
- Download URL: python-cant-stop-0.2.0.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.9.13 Linux/5.10.102.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8532c011fbe024093763221c635929b256ed91fdbede2d652d0eac0d23e370b7
|
|
| MD5 |
812b3d18ccf09b9f9f62783e06b21f16
|
|
| BLAKE2b-256 |
017034bbe56f54fba6ed6ace2dce3e6ab3bf8f8e6cefc489c2bc335b85956995
|
File details
Details for the file python_cant_stop-0.2.0-py3-none-any.whl.
File metadata
- Download URL: python_cant_stop-0.2.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.14 CPython/3.9.13 Linux/5.10.102.1-microsoft-standard-WSL2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8918993e461267880cd0a27534ab2d98f3ff30153bbc693bd9afb7176cb51cc1
|
|
| MD5 |
b76dc18afc3df7e5df9824daa88d9532
|
|
| BLAKE2b-256 |
65a29abeb5d5dad79bf5c9d9aa443bd7b55a4fa86c0eab8ccec9eeea173a71ba
|