Basically github.com/mpereira/tty-solitaire with some of the PRs applied
fe0b60a799
Bug: When the cursor is on a foundation stack or on the wastepile stack, it is possible to put this stack into an invalid state. Reason: unmark_cards() should only be called on maneuver stacks since it alters the y position of cards. Fix: Only redraw maneuver stacks on ESC-key action. |
||
---|---|---|
resources | ||
src | ||
tests | ||
.gitignore | ||
Makefile | ||
README.md | ||
TODO.md | ||
VERSION |
tty-solitaire
ncurses-based klondike solitaire game.
Dependencies
- Terminal emulator with UTF-8 support
- C library with multibyte locales support
- Ncurses with wide-char/UTF-8 support
Installing Ncurses
Ubuntu
$ sudo apt-get install libncurses5-dev libncursesw5-dev
OS X
OS X has ncurses with wide character support out of the box. If you want to use other ncurses libraries (from Macports, Homebrew, etc.) you will still be able to do so if you specify LDLAGS in the make invocation. See this pull request for more information.
Compile
$ git clone https://github.com/mpereira/tty-solitaire.git
$ cd tty-solitaire
$ make
Install
$ sudo make install
Play
$ ttysolitaire
Usage
usage: ttysolitaire [-v|--version] [-h|--help] [-p|--passes=NUMBER]
-v, --version Show version
-h, --help Show this message
-p, --passes Number of passes through the deck
Running the unit tests
$ make test