https://github.com/shlomif/pysol_cards
Python library for dealing cards like PySol FC, MS Freecell/Freecell Pro, or PySol legacy
https://github.com/shlomif/pysol_cards
card-game foss hacktoberfest opensource pysol python python3 random solitaire solitaire-card-game solitaire-game
Last synced: 4 months ago
JSON representation
Python library for dealing cards like PySol FC, MS Freecell/Freecell Pro, or PySol legacy
- Host: GitHub
- URL: https://github.com/shlomif/pysol_cards
- Owner: shlomif
- License: mit
- Created: 2019-02-14T19:57:16.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2025-07-17T04:26:33.000Z (12 months ago)
- Last Synced: 2025-09-21T08:36:59.523Z (9 months ago)
- Topics: card-game, foss, hacktoberfest, opensource, pysol, python, python3, random, solitaire, solitaire-card-game, solitaire-game
- Language: Python
- Homepage: https://pypi.org/project/pysol-cards/
- Size: 70.3 KB
- Stars: 3
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
Awesome Lists containing this project
README
===============================
pysol_cards
===============================
Deal PySol FC Cards
The pysol-cards python modules allow the python developer to generate the
initial deals of some PySol FC games. It also supports PySol legacy deals
and Microsoft FreeCell / Freecell Pro deals.
* Free software: Expat license
* Documentation: pydoc
* Source: https://github.com/shlomif/pysol_cards
* Bugs: https://github.com/shlomif/pysol_cards/issues
--------
Example:
--------
::
from pysol_cards.cards import CardRenderer
from pysol_cards.deal_game import Game
from pysol_cards.random_base import RandomBase
ms24_str = Game(
game_id="freecell",
game_num=24,
which_deals=RandomBase.DEALS_MS,
max_rank=13
).calc_layout_string(
CardRenderer(print_ts=True)
)
print(ms24_str, end='')