foliea / tic_tac_toe

A Tic Tac Toe Game with unbeatable AI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Tic Tac Toe

Build Status Maintainability Test Coverage

A Tic Tac Toe Game with unbeatable AI.

Usage

Run this command to launch the game from the root directory:

ruby bin/tic_tac_toe

Follow the instructions then.

Board scheme

1 | 2 | 3

4 | 5 | 6

7 | 8 | 9

Human player starts first.

Then:

  • It will switch players after a draw.

  • Human player will play first after a loss.

Tests

Install dependencies:

bundle install

Run:

bundle exec rake

About

A Tic Tac Toe Game with unbeatable AI


Languages

Language:Ruby 100.0%