0.02
No commit activity in last 3 years
No release in over 3 years
Play the tic-tac-toe game in the Terminal. Supports fields of any size, and can be played with up to 5 players.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

< 2.0, >= 1.3.17
>= 0
~> 3.1

Runtime

~> 1.0
= 0.1.0
 Project Readme

Tic-tac-toe

Play a game of tic-tac-toe in your Terminal.

Tic-tac-toe preview

Installation

$ gem install tic-tac-toe-ruby

Usage

$ 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: <Space>
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 gem, which binds to Curses C library.

License

MIT.