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 hashes)

Uploaded Source

Built Distribution

python_cant_stop-0.2.0-py3-none-any.whl (3.9 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