An open API service indexing awesome lists of open source software.

https://github.com/garrettmichaelgeorge/tic_tac_toe

Play Tic-Tac-Toe at the command line. Written in Ruby.
https://github.com/garrettmichaelgeorge/tic_tac_toe

cli game ruby

Last synced: 23 days ago
JSON representation

Play Tic-Tac-Toe at the command line. Written in Ruby.

Awesome Lists containing this project

README

          

# Tic-Tac-Toe at the Command Line
[![Run on Repl.it](https://repl.it/badge/github/garrettmichaelgeorge/tic_tac_toe)](https://repl.it/github/garrettmichaelgeorge/tic_tac_toe)

Play Tic-Tac-Toe from the command line!

Built using Ruby.

## To play
### Online

1. Go to [https://repl.it/@garrettmgeorge/tictactoe](https://repl.it/@garrettmgeorge/tictactoe).
2. Click "run" at the top.

### Local Machine
#### Requirements

1. Two players (playing against the computer may be supported in future versions).
2. Ruby (v1.9+) installed on local computer. To check:

~~~
$ ruby -v
ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-darwin17]
~~~

#### Process

1. Clone this repository.

~~~
$ git clone https://github.com/garrettmichaelgeorge/tic_tac_toe.git
~~~

2. Run the main Ruby script.

~~~
$ ruby tic_tac_toe.rb
~~~