A dead simple Tic Tac Toe engine.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
.rvmrc
Gemfile
README.md
Rakefile
tic_tac_toe_engine.gemspec

README.md

TicTacToeEngine

Description

TicTacToeEngine is a simple Tic Tac Toe engine implemented in Ruby.

Installation

$ [sudo] gem install tic_tac_toe_engine

Usage

You can start a console Tic Tac Toe game like this:

require 'tic_tac_toe_engine'

options = {
  :player_1 => TicTacToeEngine::Player::Human,
  :player_2 => TicTacToeEngine::Player::EasyComputer,
  :board => TicTacToeEngine::Board::3x3,
  :ui => TicTacToeEngine::UI::Console
}

game = TicTacToeEngine::Game.new(options)
game.play