___ _ __ _____ _ _ _ _
|__ \| '_ \ / ____| | (_) | (_)
) |_| |_| | (___ ___ | |_| |_ __ _ _ _ __ ___
/ / \___ \ / _ \| | | __/ _` | | '__/ _ \
/ /_ ____) | (_) | | | || (_| | | | | __/
|____| |_____/ \___/|_|_|\__\__,_|_|_| \___|
2n 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
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. 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.
Metadata
Release files for twn-solitaire 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| twn_solitaire-0.2.tar.gz | 49.1 kB | Without provenance | Details for twn_solitaire-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| twn_solitaire-0.2-py3-none-any.whl | Python 3 | none | any | Details for twn_solitaire-0.2-py3-none-any.whl |
Total release size: 99.2 kB
Release files / twn_solitaire-0.2.tar.gz
| Download URL | twn_solitaire-0.2.tar.gz |
|---|---|
| Size | 49.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
29d31877b12850be53d0d4a53d6a8a4be560394b73b65a5a80d6efd4b477acfe
|
|
BLAKE2b-256 checksum How to use checksums |
7ed8144a0a0026b432973bbc4b79f55eae6fa6044045713df6953d7e7ad3180c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / twn_solitaire-0.2-py3-none-any.whl
| Download URL | twn_solitaire-0.2-py3-none-any.whl |
|---|---|
| Size | 50.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
67b77baec34be57fdf24c4026f72362df132c49b041da9d477ef1b2605849af0
|
|
BLAKE2b-256 checksum How to use checksums |
986d36ff1ad874e9ed0dda94dd9443a713973daf1fbc6b09242a154f35840c96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for twn-solitaire 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.