Pasientza is a simple solo card game that requires a standard deck of 52 cards.
- The game was built using python 3.8.10 but should work for all 3.0+ python versions.
- PILLOW
Note: When installing Pillow keep in mind this.
Install the dependencies from requirements.txt
using pip
:
Open a terminal window in the current directory and type:
pip install -r requirements.txt
After verifying that you have the required dependencies, open a terminal window in the current directory and type:
python3 Pasientza.py
or python Pasientza.py
(assuming you already have Python 3 in your PATH).
Successfully place all the cards from the deck onto the eight stacks following the order:
- A->2->3->...->K and the same suit or
- K->Q->J->...->A and the same suit
- Use a standard 52-card deck.
- Create eight empty stacks for organizing the cards and an empty stack to keep the cards removed from the deck, called "soros".
-
Remove three cards from the deck and place them face up on the "soros".
-
If the top card of "soros" is "A" or "K," place it on one of the eight empty stacks. Execute step 2 again.
-
If the top card of "soros" has both the following properties:
- Its value is one larger or smaller than the top card of any of the eight stacks.
- It has the same suit as that specific top card
Place the top card of "soros" on the top of that matching stack and go back to step 2.
-
If the top card of "soros" does not fit the criteria in step 2 or 3, go back to step 1.
-
If the deck becomes empty, reverse the "soros" and create a new deck from it. Go to step 1.
-
If both the deck and "soros" are empty, you have won the game.
-
If you keep drawing cards, and nothing changes, start a new game.
- Add logs.
- Write an exception class.
- Add binding keys to the window.
- Count games played and win/loss ratio.
- Get user info and save it to a database.
Michail E. Koutrakis Github: https://github.com/mkoutra