A cross-platform solitaire card game suite written in C using SDL3.
- Klondike -- Classic solitaire with 7 tableaus and a stock pile
- FreeCell -- 4 free cells, 8 tableaus
- Spider -- Available in 1-suit, 2-suit, and 4-suit variants
- Touch support with multi-finger zoom and pan (Android)
- Mouse and keyboard input (Desktop)
- DPI-aware rendering for high-density displays
- Multiple card decoration themes
- Persistent settings
- Immediate-mode UI via Nuklear
CSol depends on the following libraries, included as git submodules:
After cloning, initialize submodules:
git submodule update --init --recursivecmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build buildThe resulting binary will be at build/CSol.
meson setup build --buildtype=release
meson compile -C buildOpen the android-project/ directory in Android Studio, or build from the command line:
cd android-project
./gradlew assembleDebugRequires the Android SDK and NDK.
emcmake cmake -B build-emc
cmake --build build-emc- Linux / Desktop
- Android 5.0+ (API 21)
- Web (Emscripten / WebAssembly)
See repository for license details.