Basically github.com/mpereira/tty-solitaire with some of the PRs applied
Go to file
Philipp Joram 7473c59d05 Fix segfault when launching with unkown option
Bug:    When launching with an unkown option, ttysolitaire crashes with a
        segfault.

Reason: This is due to getopt_long() not knowing where to terminate the search
        for matching options in options[].

Fix:    Append an additional Element to options[] containing only zeroes. This
        is in compliance with the GNU docs. See `man getopt_long` for reference.
2015-11-25 20:47:33 +01:00
resources Add gameplay GIF. 2013-12-24 15:30:33 -02:00
src Fix segfault when launching with unkown option 2015-11-25 20:47:33 +01:00
tests Fix test run. 2013-05-04 16:40:33 -04:00
.gitignore Only update this pattern at root. 2013-12-24 15:30:20 -02:00
Makefile Makefile: remove usage of GNU install-specific flag 2015-05-10 15:46:57 -07:00
README.md Update OS X's install instructions. 2015-05-10 19:32:34 -03:00
TODO.md Updated TODO. 2011-06-19 19:40:24 -03:00
VERSION Bump version to 0.2.0. 2015-05-10 20:42:00 -03:00

tty-solitaire

ncurses-based klondike solitaire game.

ttysolitaire gameplay

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

Author

Murilo Pereira

License

MIT