Find a file
Niels Sonnich Poulsen b6028d30d7 Add readme.
2017-07-12 17:11:14 +02:00
games Add readme. 2017-07-12 17:11:14 +02:00
src Add readme. 2017-07-12 17:11:14 +02:00
themes Add readme. 2017-07-12 17:11:14 +02:00
CMakeLists.txt Add config launch option. Move csolrc. 2017-07-10 17:22:35 +02:00
csol.png Add readme. 2017-07-12 17:11:14 +02:00
csolrc Add config launch option. Move csolrc. 2017-07-10 17:22:35 +02:00
LICENSE Initial commit 2017-03-19 21:54:07 +01:00
README.md Add readme. 2017-07-12 17:11:14 +02:00

csol

A small collection of solitaire games implemented in C using ncurses.

csol

Usage

Compile and run:

cmake .
make
./csol

Games

Klondike (default): csol klondike Klondike

Yukon: csol yukon Yukon

Eight Off: csol eightoff Eight Off

Freecell: csol freecell Freecell

Russian Solitaire: csol russian Russian Solitaire

Themes

csol -t default

csol -t default-xl default-xl

csol -t ascii ascii

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.