<img src="https://raw.githubusercontent.com/ankit8898/tic-tac-toe/master/images/ttt.png" width="200" height="200""/>
Features
- Play against computer
- Flexible Grid size. For N * N grid. Don't stop your self to a 3 * 3 . 😎
- Declares Winner
Algorithm used
There are various implementation available over the web for tic tac toe and for N * N Implementation. But, i haven't used them .
The winner of the Grid can be any time decided if
- We have one of the winning pattern in a Row
<img src="https://raw.githubusercontent.com/ankit8898/tic-tac-toe/master/images/row.jpg" "/>
- We have one of the winning pattern in a Column
<img src="https://raw.githubusercontent.com/ankit8898/tic-tac-toe/master/images/column.jpg" "/>
- We have one of the winning pattern in a Diagonal <img src="https://raw.githubusercontent.com/ankit8898/tic-tac-toe/master/images/diagonal.jpg" "/>
The Alogorithm scans all 3 combinations after every move.
$ bundle install
$ bundle exec rake play #starts the game
- Interactive terminal
- Declares winner 👏
We use Rspec for testing ❤️
Run tests via
$ bundle exec rspec