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 version 3.14.2), you will need both the card module (included in the repo) and pygame-ce (Pygame Community Edition, install using pip).
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