Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/janko/tic-tac-toe
Play tic-tac-toe in your Terminal
https://github.com/janko/tic-tac-toe
game ncurses ruby terminal terminal-game tic-tac-toe
Last synced: 2 months ago
JSON representation
Play tic-tac-toe in your Terminal
- Host: GitHub
- URL: https://github.com/janko/tic-tac-toe
- Owner: janko
- License: mit
- Created: 2014-12-11T16:18:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-11T16:27:34.000Z (about 10 years ago)
- Last Synced: 2024-10-14T02:11:11.669Z (3 months ago)
- Topics: game, ncurses, ruby, terminal, terminal-game, tic-tac-toe
- Language: Ruby
- Homepage:
- Size: 223 KB
- Stars: 43
- Watchers: 5
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tic-tac-toe
Play a game of tic-tac-toe in your Terminal.
![Tic-tac-toe preview](/preview.png)
## Installation
```sh
$ gem install tic-tac-toe-ruby
```## Usage
```sh
$ tic-tac-toe --size 10 --players 3 --goal 4
```
```
$ tic-tac-toe --help
USAGE: tic-tac-toe [options]Moving: Arrow keys or h/j/k/l
Placing symbol:
Exit: Ctrl-C-n, --size N Size of the board (default: 3)
-p, --players N The number of players (default: 2, max: 5)
-g, --goal N The number symbols in a row is required (default: 3)
```## Implementation
The game was implemented in Ruby using the [`curses`](https://github.com/ruby/curses)
gem, which binds to Curses C library.## License
MIT.