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.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

caravanassets-0.0.1-py3-none-any.whl (4.6 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