The classic game of Solitaire written entirely in Python using Pygame! My first project with Pygame, which took around 4 days to complete.
IMPORTANT: Everything in this repository not in the "assets" folder has been released under the MIT license. Each asset in the "assets" folder has been released previously under different licenses detailed below.
To run the main script (solitaire.py) using Python (preferably the latest version), you will need: the card module (included in the repo), pygame-ce and pygame-gui. The last two dependencies can be installed with pip using the requirements.txt file included in the repo (pip install -r requirements.txt).
For all-in-one executable files with all dependencies included, check out the releases page here!
- Playing cards (by Byron Knoll, open source/public domain license): https://opengameart.org/content/playing-cards-vector-png
- Red card back (by jeffshee, Creative Commons 3.0 license): https://opengameart.org/content/colorful-poker-card-back
- Icon used for Windows/macOS release executables (by Oxygen Team, LGPL license): https://www.iconarchive.com/show/oxygen-icons-by-oxygen-icons.org/Categories-applications-games-icon.html
- Stack Overflow and its many contributors, for a lot of answers on relevant Python questions and for providing the source code for the get_path helper function used in my solitaire.py script