Welcome to the Patience Card Game! This is a classic card game implemented in Python using the Tkinter library for the GUI and the PIL library for image handling. The game is similar to Solitaire, where the goal is to move all cards to 4 end houses to win.
You can install and run the Patience Card Game in two ways: from releases or from source.
-
Go to the Releases page of the repository.
-
Download the latest release for your operating system:
- For Windows: Download the
.exe
file - For macOS: Download the macOS executable
- For Linux: Download the Linux executable
- For Windows: Download the
-
Running the game:
-
Windows: Simply double-click the
.exe
file to run the game. -
macOS and Linux: Open a terminal, navigate to the directory containing the downloaded file, and run:
chmod +x patience-macos && ./patience-macos
This command makes the file executable and runs it. After the first time, you can double-click the file to run it.
-
To install from source, follow these steps:
-
Clone the repository:
git clone https://github.com/depleur/patience.git cd patience
-
Set up a Python virtual environment:
It is highly recommended to use a virtual environment to manage dependencies. You can create and activate a virtual environment using the following commands:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the required dependencies:
pip install -r requirements.txt
If you installed from releases, run the game by following the instructions in the Installing from Releases section.
If you installed from source, run the game by executing the following command:
python game.py
This will launch the Patience Card Game window.
We welcome contributions to improve the Patience Card Game! If you would like to contribute, please follow these steps:
-
Fork the repository:
Click the "Fork" button at the top-right corner of this page to create a copy of this repository under your GitHub account.
-
Clone your forked repository:
git clone https://github.com/your-username/patience-card-game.git cd patience-card-game
-
Create a new branch for your changes:
git checkout -b my-feature-branch
-
Make your changes and commit them:
git add . git commit -m "Description of your changes"
-
Push your changes to your forked repository:
git push origin my-feature-branch
-
Create a pull request:
Go to the original repository on GitHub, and you should see a prompt to create a pull request from your forked repository. Follow the instructions to submit your pull request for review.
- Ensure your code follows the project's coding style and conventions.
- Write clear and concise commit messages.
- Include documentation and comments where necessary.
- Test your changes thoroughly before submitting a pull request.
On macOS, Tkinter can be slower, resulting in jerkier movements. I am aware of this issue and there is little I can do to solve it. This may be local to macOS 14 (Sonoma), or macOS in general.
This project is licensed under the GNU-GPL v3 License. See the LICENSE file for details.