Ncurses-based klondike solitaire game.
- Terminal emulator with UTF-8 support
- C library with multibyte locales support
- Ncurses with wide-char/UTF-8 support
pacman -S tty-solitairebrew install tty-solitaireDebian testing
apt install tty-solitairenix-env --install tty-solitairexbps-install -S tty-solitairepkg install tty-solitaireapt-get install tty-solitaireWe still need help making tty-solitaire available on Ubuntu, Fedora, Gentoo, and more. Please give us a hand at issue #29 if you think you can help.
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-devmacOS has Ncurses with wide character support out of the box, so there’s nothing you need to do.
If for some reason 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.4.1.tar.gz https://github.com/mpereira/tty-solitaire/archive/v1.4.1.tar.gz
tar xvf tty-solitaire-v1.4.1.tar.gz
cd tty-solitaire-1.4.1
make
sudo make installRun in your favorite shell:
ttysolitaireusage: ./ttysolitaire [OPTIONS]
-v, --version Show version
-h, --help Show this message
-p, --passes Number of passes through the deck (default: 3)
--four-color-deck Draw unique card suit colors (default: false)
--no-background-color Don't draw background color (default: false)
git clone https://github.com/mpereira/tty-solitaire.gitmake test