Project

ttt_core

0.0
No commit activity in last 3 years
No release in over 3 years
This is the core logic of a Tic Tac Toe game. Create a front end, and a human player (if required) and you are good to go.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0
~> 3.0
 Project Readme

Build Status Coverage Status

Tic Tac Toe Core Gem

This is a gem for the core logic of a Tic Tac Toe game built in Ruby. It will require a front end, and a human player that interacts with the front end to be played, ie. ttt_cli, and ttt_web.

The Rules

The rules of tic-tac-toe are as follows:

  • There are two players in the game (X and O)
  • Players take turns until the game is over
  • A player can claim a field if it is not already taken
  • A turn ends when a player claims a field
  • A player wins if they claim all the fields in a row, column or diagonal
  • A game is over if a player wins
  • A game is over when all fields are taken