This is a web front end Tic Tac Toe game built in Ruby. It will uses my ttt_core gem.
This can be played on Heroku. Alternatively, you can run it locally by following the instructions below.
- Install the gem
gem install ttt_web
- Run the game by running
ttt_web
- In a browser of your choice, navigate to localhost:4567
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