Ncurses-based klondike solitaire game.
- Terminal emulator with UTF-8 support
- C library with multibyte locales support
- Ncurses with wide-char/UTF-8 support
tty-solitaire depends on Ncurses. Some platforms provide it out of the box and some don’t, so you might need to install it yourself.
sudo apt-get install libncurses5-dev libncursesw5-dev
macOS has Ncurses with wide character support out of the box, so there’s
nothing you need to do. If you want to use other Ncurses libraries (from
Macports, Homebrew, etc.) you are able to do it by specifying LDLAGS
in
the make invocation. See this pull request for more information.
$ wget -O tty-solitaire-v1.1.0.tar.gz https://github.com/mpereira/tty-solitaire/archive/v1.1.0.tar.gz
$ tar xvf tty-solitaire-v1.1.0.tar.gz
$ cd tty-solitaire-1.1.0
$ make
$ sudo make install
Check out mpereira#29.
Run in your favorite shell:
ttysolitaire
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
git clone https://github.com/mpereira/tty-solitaire.git
make test