2011-06-06 06:15:44 +00:00
|
|
|
# tty-solitaire
|
|
|
|
ncurses-based klondlike solitaire game.
|
|
|
|
|
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
|
2013-12-24 17:36:03 +00:00
|
|
|
- Ncurses with wide-char/UTF-8 support
|
2013-12-24 16:46:37 +00:00
|
|
|
|
2013-12-24 17:36:03 +00:00
|
|
|
### Installing Ncurses
|
2013-12-24 16:46:37 +00:00
|
|
|
|
|
|
|
#### Ubuntu
|
|
|
|
|
2013-12-24 17:36:03 +00:00
|
|
|
$ sudo apt-get install libncurses5-dev libncursesw5-dev
|
2013-12-24 16:46:37 +00:00
|
|
|
|
|
|
|
#### OS X
|
|
|
|
|
|
|
|
$ sudo port install ncurses
|
|
|
|
|
|
|
|
## 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)
|