Another classic childhood game
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.
img
lib
spec
.gitignore
.reek
.rspec
.rubocop.yml
.travis.yml
Gemfile
Gemfile.lock
README.md
Rakefile

README.md

Build Status

Tic-Tac-Toe

A classic game implemented in Ruby.

Getting started

git clone https://github.com/mickaelpham/tic-tac-toe
cd tic-tac-toe
bundle install
bundle exec rake play

Features

  • Display board, prompt for player names
  • Board checks for victory or tie conditions
  • Main game loop
  • Handle exception (input check)
  • Prompt for another game with the same players
  • Colorize player tokens in a different color
  • Thorough test coverage (100%)

Tests

# run the linters and specs
bundle exec rake
# open the code coverage report
open coverage/index.html

Screenshots

Player prompt

screen-01

During the game

screen-02

screen-03

Victory screen

screen-04

Tie screen

screen-05