twn-solitaire


Nametwn-solitaire JSON
Version 0.2 PyPI version JSON
download
home_pagehttps://github.com/geckon/2-n_solitaire
SummaryGeneric version of 2048 Solitaire. Simple, fun and satisfying game.
upload_time2023-03-12 19:08:32
maintainer
docs_urlNone
authorTomáš Heger
requires_python>=3.7,<4.0
licenseGNU GPL v3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI
coveralls test coverage No coveralls.
            <pre>
  ___  _ __     _____       _ _ _        _
 |__ \| '_ \   / ____|     | (_) |      (_)
    ) |_| |_| | (___   ___ | |_| |_ __ _ _ _ __ ___
   / /         \___ \ / _ \| | | __/ _` | | '__/ _ \
  / /_         ____) | (_) | | | || (_| | | | |  __/
 |____|       |_____/ \___/|_|_|\__\__,_|_|_|  \___|

</pre>

[![Build Status](https://travis-ci.com/geckon/2-n_solitaire.svg?branch=master)](https://travis-ci.com/geckon/2-n_solitaire)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/37d712df43e44d6487bb35e015c27c47)](https://app.codacy.com/app/geckon/2-n_solitaire?utm_source=github.com&utm_medium=referral&utm_content=geckon/2-n_solitaire&utm_campaign=Badge_Grade_Dashboard)
[![Total alerts](https://img.shields.io/lgtm/alerts/g/geckon/2-n_solitaire.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/geckon/2-n_solitaire/alerts/)
[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/geckon/2-n_solitaire.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/geckon/2-n_solitaire/context:python)
[![Updates](https://pyup.io/repos/github/geckon/2-n_solitaire/shield.svg)](https://pyup.io/repos/github/geckon/2-n_solitaire/)

2<sup>n</sup> Solitaire (or TWN Solitaire) is a simple game inspired by
2048 Solitaire (but more generic) which is inspired by 2048 (but instead of
tiles in a grid you collect cards here). I find the game fun and
satisfying and thus I decided to try and implement it using Pygame. Here we are.

The goal of the game is to stack an endless row of cards into limited-size
columns. Each time you stack two cards of the same value one on the other,
the two cards are replaced by one of double the value and your score grows.
Cards with the maximum value (configurable, see below) will disappear.
The game ends once all the columns are full and so no more cards can be played.

### Controls

![Screenshot](https://github.com/geckon/2-n_solitaire/blob/master/docs/screenshot.png)

This is what the game looks like. At the top you can see your current score,
below that is the main board where the cards are stacked. In the bottom part you
can see two next cards that will come to the game. You can use `1`, `2`, `3` and
`4` keys to place the next upcoming card to the respective column.

That's it. Simple, eh?

### Configuration

There are some configurable options - see
the [default config file](.2-n_solitaire.conf). All options should be described
there including default values which will be used if not specified otherwise.
The game will search for the configuration file in the following locations
(in this order):

-   current working directory

-   home directory

-   directory specified by TWN_SOLITAIRE_CONF_DIR environment
    variable

### Current state

The game works but doesn't do anything fancy or look fancy yet.

### Future plans

-   High score recording
-   Special cards?
-   Limited swapping *next cards*?
-   Limited discarding *next cards*?
-   Saving game state on exit?
-   Better *graphics*?
-   Mouse support?

See/add issues if interested in anything particular.


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/geckon/2-n_solitaire",
    "name": "twn-solitaire",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "Tom\u00e1\u0161 Heger",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/7e/d8/144a0a0026b432973bbc4b79f55eae6fa6044045713df6953d7e7ad3180c/twn_solitaire-0.2.tar.gz",
    "platform": null,
    "description": "<pre>\n  ___  _ __     _____       _ _ _        _\n |__ \\| '_ \\   / ____|     | (_) |      (_)\n    ) |_| |_| | (___   ___ | |_| |_ __ _ _ _ __ ___\n   / /         \\___ \\ / _ \\| | | __/ _` | | '__/ _ \\\n  / /_         ____) | (_) | | | || (_| | | | |  __/\n |____|       |_____/ \\___/|_|_|\\__\\__,_|_|_|  \\___|\n\n</pre>\n\n[![Build Status](https://travis-ci.com/geckon/2-n_solitaire.svg?branch=master)](https://travis-ci.com/geckon/2-n_solitaire)\n[![Codacy Badge](https://api.codacy.com/project/badge/Grade/37d712df43e44d6487bb35e015c27c47)](https://app.codacy.com/app/geckon/2-n_solitaire?utm_source=github.com&utm_medium=referral&utm_content=geckon/2-n_solitaire&utm_campaign=Badge_Grade_Dashboard)\n[![Total alerts](https://img.shields.io/lgtm/alerts/g/geckon/2-n_solitaire.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/geckon/2-n_solitaire/alerts/)\n[![Language grade: Python](https://img.shields.io/lgtm/grade/python/g/geckon/2-n_solitaire.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/geckon/2-n_solitaire/context:python)\n[![Updates](https://pyup.io/repos/github/geckon/2-n_solitaire/shield.svg)](https://pyup.io/repos/github/geckon/2-n_solitaire/)\n\n2<sup>n</sup> Solitaire (or TWN Solitaire) is a simple game inspired by\n2048 Solitaire (but more generic) which is inspired by 2048 (but instead of\ntiles in a grid you collect cards here). I find the game fun and\nsatisfying and thus I decided to try and implement it using Pygame. Here we are.\n\nThe goal of the game is to stack an endless row of cards into limited-size\ncolumns. Each time you stack two cards of the same value one on the other,\nthe two cards are replaced by one of double the value and your score grows.\nCards with the maximum value (configurable, see below) will disappear.\nThe game ends once all the columns are full and so no more cards can be played.\n\n### Controls\n\n![Screenshot](https://github.com/geckon/2-n_solitaire/blob/master/docs/screenshot.png)\n\nThis is what the game looks like. At the top you can see your current score,\nbelow that is the main board where the cards are stacked. In the bottom part you\ncan see two next cards that will come to the game. You can use `1`, `2`, `3` and\n`4` keys to place the next upcoming card to the respective column.\n\nThat's it. Simple, eh?\n\n### Configuration\n\nThere are some configurable options - see\nthe [default config file](.2-n_solitaire.conf). All options should be described\nthere including default values which will be used if not specified otherwise.\nThe game will search for the configuration file in the following locations\n(in this order):\n\n-   current working directory\n\n-   home directory\n\n-   directory specified by TWN_SOLITAIRE_CONF_DIR environment\n    variable\n\n### Current state\n\nThe game works but doesn't do anything fancy or look fancy yet.\n\n### Future plans\n\n-   High score recording\n-   Special cards?\n-   Limited swapping *next cards*?\n-   Limited discarding *next cards*?\n-   Saving game state on exit?\n-   Better *graphics*?\n-   Mouse support?\n\nSee/add issues if interested in anything particular.\n\n",
    "bugtrack_url": null,
    "license": "GNU GPL v3",
    "summary": "Generic version of 2048 Solitaire. Simple, fun and satisfying game.",
    "version": "0.2",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "986d36ff1ad874e9ed0dda94dd9443a713973daf1fbc6b09242a154f35840c96",
                "md5": "0eee0494de45d457f8974bd6822bad9e",
                "sha256": "67b77baec34be57fdf24c4026f72362df132c49b041da9d477ef1b2605849af0"
            },
            "downloads": -1,
            "filename": "twn_solitaire-0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0eee0494de45d457f8974bd6822bad9e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7,<4.0",
            "size": 50092,
            "upload_time": "2023-03-12T19:08:30",
            "upload_time_iso_8601": "2023-03-12T19:08:30.549825Z",
            "url": "https://files.pythonhosted.org/packages/98/6d/36ff1ad874e9ed0dda94dd9443a713973daf1fbc6b09242a154f35840c96/twn_solitaire-0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7ed8144a0a0026b432973bbc4b79f55eae6fa6044045713df6953d7e7ad3180c",
                "md5": "1b546acccb5b78d3302f1246c77b79a3",
                "sha256": "29d31877b12850be53d0d4a53d6a8a4be560394b73b65a5a80d6efd4b477acfe"
            },
            "downloads": -1,
            "filename": "twn_solitaire-0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "1b546acccb5b78d3302f1246c77b79a3",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7,<4.0",
            "size": 49150,
            "upload_time": "2023-03-12T19:08:32",
            "upload_time_iso_8601": "2023-03-12T19:08:32.222967Z",
            "url": "https://files.pythonhosted.org/packages/7e/d8/144a0a0026b432973bbc4b79f55eae6fa6044045713df6953d7e7ad3180c/twn_solitaire-0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-12 19:08:32",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "geckon",
    "github_project": "2-n_solitaire",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": true,
    "lcname": "twn-solitaire"
}
        
Elapsed time: 0.04428s