Skip to content

mateuadsuara/tictactoe-core.rb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tictactoe-core.rb

Build Status Code Climate Test Coverage

Description

This is an implementation of the tic-tac-toe game (or Noughts and crosses, Xs and Os) in Ruby.

This repository provides the core logic of the game that can be shared across multiple user interfaces or run without any user interface.

Features

Board sizes
  • 3x3
  • 4x4
Interesting perfect computer player
  • Never loses
  • Wins if possible
  • Chooses randomly between best moves

Dependencies

Execution
  • Ruby, from v2.0.0 to 2.2.0 (other versions might work too)
Testing
Others
  • Bundler (To manage dependencies)
  • Rake (To run preconfigured tasks)

Setup

Install dependencies

bundle install

Run tests

rake

Rake tasks

run rake -T to see all available tasks

Available user interfaces

About

The core logic of a tictactoe implementation

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages