Skip to content
/ CSol Public

Cross-platform solitaire card game suite written in C using SDL3

Notifications You must be signed in to change notification settings

dougvj/CSol

Repository files navigation

CSol

A cross-platform solitaire card game suite written in C using SDL3.

Games

  • 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

Features

  • 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

Building

Dependencies

CSol depends on the following libraries, included as git submodules:

After cloning, initialize submodules:

git submodule update --init --recursive

Desktop (CMake)

cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build

The resulting binary will be at build/CSol.

Desktop (Meson)

meson setup build --buildtype=release
meson compile -C build

Android

Open the android-project/ directory in Android Studio, or build from the command line:

cd android-project
./gradlew assembleDebug

Requires the Android SDK and NDK.

Emscripten (WebAssembly)

emcmake cmake -B build-emc
cmake --build build-emc

Platforms

  • Linux / Desktop
  • Android 5.0+ (API 21)
  • Web (Emscripten / WebAssembly)

License

See repository for license details.

About

Cross-platform solitaire card game suite written in C using SDL3

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages