caravanassets


Namecaravanassets JSON
Version 0.1.3 PyPI version JSON
download
home_pagehttps://github.com/Anritab/CaravanCardGame
SummaryThis is a python package for implementing the card game Caravan
upload_time2023-09-18 20:14:41
maintainer
docs_urlNone
authorAnri Tabuev
requires_python>=3.9
licenseMIT
keywords caravan card cardgame game fallout
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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)

# jack add instruction

You must enter a list of cards [name1, suit1, name2, suit2...], where name (1-13) are in odd places, and suit (1-4) are in even places. The sequence of cards must be a valid caravan. (there should be no jacks in it, and the number card should come first).

You also need to select the card on which you want to place the jack. Jack can only be placed on number cards.

For example, you can use `python -m caravanassets -cards "[1, 2, 3, 4, 13, 2, 4, 2]"` 
output:
`Three Clubs
King Diamonds
Four Diamonds`

by default the program uses jack on the first card

but if you need to use it on other card, you can use
`python -m caravanassets -cards "[1, 2, 3, 4, 13, 2, 4, 2]" -addj 2` 
output:
`Ace Diamonds
Four Diamonds`

the jack removed the second card, and all the picture cards on it.

# input

-cards / --caravan (necessary)

-addj / --addjack (not necessary)

# installation
`pip install caravanassets`


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Anritab/CaravanCardGame",
    "name": "caravanassets",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "caravan,card,cardgame,game,fallout",
    "author": "Anri Tabuev",
    "author_email": "Anri Tabuev <anri.tabuev@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/42/45/76f4774fedf95b7036171f99028a48cf304c917f72a37eca65cde9fd5f7d/caravanassets-0.1.3.tar.gz",
    "platform": null,
    "description": "# why?\r\nThis Python package will help you implement the Caravan card game.\r\n\r\nThe 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.\r\n\r\nIt 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).\r\n\r\nPlaying cards are implemented using the \"Card\" class, which contains the name of the card and its suit.\r\n\r\nSo far this package does not contain manipulations with the Joker card, but it will be added in the future. (maybe)\r\n\r\n# jack add instruction\r\n\r\nYou must enter a list of cards [name1, suit1, name2, suit2...], where name (1-13) are in odd places, and suit (1-4) are in even places. The sequence of cards must be a valid caravan. (there should be no jacks in it, and the number card should come first).\r\n\r\nYou also need to select the card on which you want to place the jack. Jack can only be placed on number cards.\r\n\r\nFor example, you can use `python -m caravanassets -cards \"[1, 2, 3, 4, 13, 2, 4, 2]\"` \r\noutput:\r\n`Three Clubs\r\nKing Diamonds\r\nFour Diamonds`\r\n\r\nby default the program uses jack on the first card\r\n\r\nbut if you need to use it on other card, you can use\r\n`python -m caravanassets -cards \"[1, 2, 3, 4, 13, 2, 4, 2]\" -addj 2` \r\noutput:\r\n`Ace Diamonds\r\nFour Diamonds`\r\n\r\nthe jack removed the second card, and all the picture cards on it.\r\n\r\n# input\r\n\r\n-cards / --caravan (necessary)\r\n\r\n-addj / --addjack (not necessary)\r\n\r\n# installation\r\n`pip install caravanassets`\r\n\r\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "This is a python package for implementing the card game Caravan",
    "version": "0.1.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/Anritab/CaravanCardGame/issues",
        "Download": "https://github.com/Anritab/CaravanCardGame/issues",
        "Homepage": "https://github.com/Anritab/CaravanCardGame"
    },
    "split_keywords": [
        "caravan",
        "card",
        "cardgame",
        "game",
        "fallout"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "93110e3a863d33363c9b6beedac522da8398af23a2dce19bee5ad9fab1605a16",
                "md5": "e70ca5e9e718f48100839dfcde7d8d6a",
                "sha256": "1737a9a34fd9092f9c2d89a9a4f39e599b995e8a0268d2154617afc11580e257"
            },
            "downloads": -1,
            "filename": "caravanassets-0.1.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e70ca5e9e718f48100839dfcde7d8d6a",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 7814,
            "upload_time": "2023-09-18T20:14:40",
            "upload_time_iso_8601": "2023-09-18T20:14:40.337214Z",
            "url": "https://files.pythonhosted.org/packages/93/11/0e3a863d33363c9b6beedac522da8398af23a2dce19bee5ad9fab1605a16/caravanassets-0.1.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "424576f4774fedf95b7036171f99028a48cf304c917f72a37eca65cde9fd5f7d",
                "md5": "a818861c4b7931646d38cf2fb69acb2d",
                "sha256": "8bd51f3327d21eb8ebe768ae4b974bac88eb76953d835772c6f6ad412cd1e535"
            },
            "downloads": -1,
            "filename": "caravanassets-0.1.3.tar.gz",
            "has_sig": false,
            "md5_digest": "a818861c4b7931646d38cf2fb69acb2d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 5108,
            "upload_time": "2023-09-18T20:14:41",
            "upload_time_iso_8601": "2023-09-18T20:14:41.524448Z",
            "url": "https://files.pythonhosted.org/packages/42/45/76f4774fedf95b7036171f99028a48cf304c917f72a37eca65cde9fd5f7d/caravanassets-0.1.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-09-18 20:14:41",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Anritab",
    "github_project": "CaravanCardGame",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "caravanassets"
}
        
Elapsed time: 0.29878s