Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python-cant-stop-0.2.0.tar.gz (3.6 kB view details)

Uploaded Source

Built Distribution

python_cant_stop-0.2.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

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

Hashes for python-cant-stop-0.2.0.tar.gz
Algorithm Hash digest
SHA256 8532c011fbe024093763221c635929b256ed91fdbede2d652d0eac0d23e370b7
MD5 812b3d18ccf09b9f9f62783e06b21f16
BLAKE2b-256 017034bbe56f54fba6ed6ace2dce3e6ab3bf8f8e6cefc489c2bc335b85956995

See more details on using hashes here.

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

Hashes for python_cant_stop-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8918993e461267880cd0a27534ab2d98f3ff30153bbc693bd9afb7176cb51cc1
MD5 b76dc18afc3df7e5df9824daa88d9532
BLAKE2b-256 65a29abeb5d5dad79bf5c9d9aa443bd7b55a4fa86c0eab8ccec9eeea173a71ba

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