Skip to content

Latest commit

 

History

History
49 lines (32 loc) · 1.46 KB

README.md

File metadata and controls

49 lines (32 loc) · 1.46 KB

Tic Tac Toe

Build Status Test Coverage Depfu

A naive or creative ruby implementation of an unbeatable tic-tac-toe program. For a more scientific approach check out the article "Tic Tac Toe: Understanding The Minimax Algorithm".

Design goals

  • The program should allow three game modes:
    • User vs. Computer
    • User vs. User
    • Computer vs. Computer
  • The computer player should never lose
  • The user can choose which player goes first

Usage

You should have any latest ruby version installed. To be sure you can check the listed version in the provided /.travis.yml.

git clone https://github.com/grekko/tic-tac-toe.git
cd tic-tac-toe
bundle install
./bin/tictactoe

Development

Tests are written with rspec (/spec-Directory). Run them all with:

rake

Generate code coverage report or have a look at Codeclimate

open coverage/index.html

IDEAS

  • Reconsider coupling between CLI <-> Game/Match