Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

wxSolitaire

A cross-platform implementation of classic Klondike Solitaire built with C++ and wxWidgets.

GPL-2.0

Screenshots

  • Windows:

  • macOS:

  • Linux:

  • Android:

Features

  • Classic Klondike solitaire gameplay
  • Draw one or draw three card modes
  • Scoring modes: Standard, Vegas, or None
  • Timed game mode
  • Undo support
  • Drag-and-drop with outline or full bitmap dragging
  • 12 card back designs
  • Keyboard navigation

Building

Prerequisites

  • C++11 compiler
  • CMake 3.14+
  • wxWidgets (core, base, xrc, xml, html components)

Build steps

mkdir build && cd build
cmake ..
cmake --build .

On macOS this produces a wxSolitaire.app bundle. On Windows it builds a GUI executable with the application icon and manifest. On Linux it builds a standard executable.

Android (arm64-v8a)

The Android build reuses the same C++ game code, compiled against the wxWidgets Qt port (wxQt) that ships prebuilt inside the Qt 6.9.3 Android kit, and is packaged into an APK with androiddeployqt.

Prerequisites:

  • Qt 6.9.3 Android kit at /usr/local/qt-6.9.3-android-arm64 (with the wxQt static libraries) and the host Qt at /usr/local/qt-6.9.3
  • Android SDK (with a build-tools + platform) and NDK, JDK 17+
  • Host wxrc-3.3 (used to compile the card resources on the build machine)

Build and package a signed release APK:

cp android-signing.env.example android-signing.env   # then fill in your keystore
./build-android.sh

build-android.sh runs qt-cmake, builds libwxSolitaire_arm64-v8a.so, and invokes the Qt apk target (which calls androiddeployqt). Signing uses your existing keystore via the QT_ANDROID_KEYSTORE_* variables in android-signing.env; without them the APK is left unsigned. The resulting APK is printed at the end of the run (under build-android/.../outputs/apk/).

Installing

After building, install with:

cmake --install .

On Linux the install includes a .desktop file and AppStream metadata for integration with desktop environments and software centres.

License

This project is licensed under the GNU General Public License v2.0.

The bin2c.c utility is licensed under the BSD 2-Clause license (copyright Rafael Kitover, 2016).

About

Microsoft Solitaire ported to wxWidgets

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages