This is an implementation of the tic-tac-toe game (or Noughts and crosses, Xs and Os) in Ruby.
This repository provides the core logic of the game that can be shared across multiple user interfaces or run without any user interface.
- 3x3
- 4x4
- Never loses
- Wins if possible
- Chooses randomly between best moves
- Ruby, from v2.0.0 to 2.2.0 (other versions might work too)
- RSpec 3.1.0
- Codeclimate Test Reporter (For CI environment)
bundle install
rake
run rake -T
to see all available tasks
- tictactoe-cli.rb: A CLI for tictactoe
- tictactoe-gui.rb: A GUI for tictactoe
- tictactoe-web.rb: A Web interface for tictactoe