• Stars
    star
    267
  • Rank 153,190 (Top 4 %)
  • Language
    C
  • License
    MIT License
  • Created over 14 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Play solitaire in your terminal!

tty-solitaire

Ncurses-based klondike solitaire game.

https://raw.github.com/mpereira/tty-solitaire/master/resources/ttysolitaire.gif

Dependencies

  • Terminal emulator with UTF-8 support
  • C library with multibyte locales support
  • Ncurses with wide-char/UTF-8 support

Install

https://repology.org/badge/vertical-allrepos/tty-solitaire.svg

Using package managers

Arch Linux

pacman -S tty-solitaire

macOS

brew install tty-solitaire

Debian testing

apt install tty-solitaire

Nix

nix-env --install tty-solitaire

Void Linux

xbps-install -S tty-solitaire

FreeBSD

pkg install tty-solitaire

Slackware

Via Slackbuilds.

ALT Linux

apt-get install tty-solitaire

We 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.

From source

Install Ncurses

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.

Ubuntu
sudo apt-get install libncurses5-dev libncursesw5-dev
macOS

macOS 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.

Install tty-solitaire

wget -O tty-solitaire-v1.3.1.tar.gz https://github.com/mpereira/tty-solitaire/archive/v1.3.1.tar.gz
tar xvf tty-solitaire-v1.3.1.tar.gz
cd tty-solitaire-1.3.1
make
sudo make install

Play

Run in your favorite shell:

ttysolitaire

Usage

usage: ./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)

Development

Get the code

git clone https://github.com/mpereira/tty-solitaire.git

Run the unit tests

make test

Ncurses documentation

Ncurses programming HOWTO

Author

Murilo Pereira

License

MIT

More Repositories

1

macbook-playbook

Install all your applications and configure everything the way you like it with one command
Shell
193
star
2

.emacs.d

Vanilla, Evil, literate Emacs configuration
Makefile
72
star
3

felucca

A game inspired by Ultima Online (WIP)
Clojure
9
star
4

the-case-for-reactjs-and-clojurescript

A comparison of MVC web frameworks with React.js and ClojureScript. It was given to the engineering team at Sonian in May 2014.
CSS
6
star
5

dotfiles

Configuration for anything that isn't Emacs
Shell
4
star
6

daylio-csv-to-org

A library and CLI to convert Daylio CSV exports into Org Mode files
Clojure
3
star
7

emacs-audit

Show rich information about your Emacs setup
Emacs Lisp
3
star
8

.vim

Artisanal vim configuration carefully curated through millenia
Vim Script
2
star
9

machine-learning

Me going through https://www.coursera.org/course/ml
MATLAB
2
star
10

text-mining-and-analytics

Me implementing a few of the course's algorithms in Clojure (https://www.coursera.org/course/textanalytics)
Clojure
2
star
11

creating-browser-based-games-with-html5-and-javascript

Presentation given to computer science and engineering students at the State University of Campinas on April 2012.
JavaScript
2
star
12

bell

Tenha controle sobre as suas faturas de telefone da Embratel.
Ruby
1
star
13

werld-client-browser

Werld Online browser client (WIP)
JavaScript
1
star
14

statistics-one

Me going through https://www.coursera.org/course/stats1
R
1
star
15

autonomous-vehicles

Self-driving vehicles using neural networks. Runs in the browser, made with ClojureScript (WIP)
1
star
16

bin

$HOME/bin
Shell
1
star
17

noronha

Distributed key-value store written in Rust.
Rust
1
star
18

ompload

CLI to upload files to omploader
Ruby
1
star