Skip to main content

This is a python package for implementing the card game Caravan

Project description

why?

This Python package will help you implement the Caravan card game.

The most important thing it does is add cards to the caravan pile using the "add_card" method. If it is impossible to add a card, the caravan does not change.

It also has several auxiliary methods, such as "price" - which allows you to estimate the cost of a caravan, or "direction_check", which allows you to determine the direction of the stack (increasing or descending).

Playing cards are implemented using the "Card" class, which contains the name of the card and its suit.

So far this package does not contain manipulations with the Joker card, but it will be added in the future. (maybe)

installation

pip install caravanassets

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

caravanassets-0.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

caravanassets-0.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file caravanassets-0.0.2.tar.gz.

File metadata

  • Download URL: caravanassets-0.0.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for caravanassets-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8fd708cfd557812c604a02784fb1445986f3f7e4b9f3edfebec25006bbfcad39
MD5 a2d7a58af01f27758c823bd5ab8ccd22
BLAKE2b-256 0c2a3400886337adbac9519d1ffcab75f7b22168dd30bcda63c369534e997afc

See more details on using hashes here.

File details

Details for the file caravanassets-0.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for caravanassets-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a82771b360f5809be3b2ce26a8f8bdf80afe00b28da8eaade1669c27e89db1be
MD5 ccff7f620ebdee846ceacee4ece0e94e
BLAKE2b-256 1a06a78a84edc4044c24310ced43a7800d98357030969d84961c98f309ecadac

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