mirror of
https://github.com/nielssp/csol
synced 2024-11-16 19:49:01 +01:00
Mirror of https://github.com/nielssp/csol
games | ||
src | ||
themes | ||
CMakeLists.txt | ||
csol.png | ||
csolrc | ||
LICENSE | ||
README.md |
csol
A small collection of solitaire games implemented in C using ncurses.
Usage
Compile and run:
cmake .
make
./csol
Games
Klondike (default): csol klondike
Russian Solitaire: csol russian
Themes
csol -t default
Options
--version
/-v
: Show version--help
/-h
: Show help--list
/-l
: List games--themes
/-T
: List themes--theme <name>
/-t <name>
: Use a theme--mono
/-m
: Disable colors--seed <seed>
/-s <seed>
: Seed the pnrg--config <file>
/-c <file>
: Use a configuration file
Configuration
The system-wide configuration file is /etc/xdg/csol/csolrc
with games in /etc/xdg/csol/games
and themes in /etc/xdg/csol/themes
.
Keys
Move the cursor using H, J, K, and L or the arrow keys.
Select the card under the cursor using SPACE.
Move the selected card to the tableau or foundaton under the cursor using M.
Press A to automatically move a card (from any tableau) to a foundation if possible.
Press Q to quit.