TDD Tic-Tac-Toe in Ruby.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
spec
.gitignore
.travis.yml
Gemfile
Gemfile.lock
README.org

README.org

Tic-Tac-Toe in Ruby

https://travis-ci.org/mathpunk/ttt-ruby.svg?branch=master

  • command-line interface
  • human vs. human, human vs. computer, computer vs. computer
  • custom marks, if desired
  • computer strategy: random play
  • computer strategy: minimax play (**in progress**)

Prerequisites

  • Ruby 2.4
  • the `bundler` gem somewhere that your path can see it

Installing

git clone https://github.com/mathpunk/ttt-ruby
cd ttt-ruby
bundle install --path .bundle

Running the tests

bundle exec rspec

Playing Tic-Tac-Toe

ruby lib/main.rb

…and follow the directions.