tty-solitaire/README.md

50 lines
1.2 KiB
Markdown
Raw Normal View History

2011-06-06 06:15:44 +00:00
# tty-solitaire
2013-12-24 17:41:46 +00:00
ncurses-based klondike solitaire game.
2011-06-06 06:15:44 +00:00
2013-12-24 17:30:33 +00:00
![ttysolitaire gameplay](https://raw.github.com/mpereira/tty-solitaire/master/resources/ttysolitaire.gif)
2011-06-10 03:02:19 +00:00
## Dependencies
- Terminal emulator with UTF-8 support
- C library with multibyte locales support
- Ncurses with wide-char/UTF-8 support
2013-12-24 16:46:37 +00:00
### Installing Ncurses
2013-12-24 16:46:37 +00:00
#### Ubuntu
$ sudo apt-get install libncurses5-dev libncursesw5-dev
2013-12-24 16:46:37 +00:00
#### OS X
2015-05-10 22:32:30 +00:00
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](https://github.com/mpereira/tty-solitaire/pull/8) for more
information.
2013-12-24 16:46:37 +00:00
## Compile
$ git clone https://github.com/mpereira/tty-solitaire.git
$ cd tty-solitaire
$ make
## Install
$ sudo make install
## Play
$ ttysolitaire
2011-06-10 03:02:19 +00:00
2011-06-13 00:37:03 +00:00
## 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
2011-06-06 06:15:44 +00:00
## Running the unit tests
$ make test
## Author
[Murilo Pereira](http://murilopereira.com)
## License
2013-12-24 16:46:37 +00:00
[MIT](http://opensource.org/licenses/MIT)