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