/tic-tac-toe

Primary LanguageTypeScript

on-air

Welcome to the Tic Tac Toe game! This repository has been created as an assesment for On Air. I hope you have some fun trying out the game :)

Building and running on localhost

First install dependencies:

npm install

or

yarn

To run in hot module reloading mode:

npm start

or

yarn start

To create a production build:

npm run build-prod

or

yarn build-prod

Testing

To run and watch the unit tests:

npm run test

or

yarn test

HOW TO PLAY TIC TAC TOE

  1. The game is normally played on a grid of 3 squares by 3 squares.
  2. You are X, your friend is O. Players take turns putting their marks in empty squares.
  3. The first player to get 3 of her marks in a row (up, down, across, or diagonally) is the winner.
  4. When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game ends in a tie.

Credits

Used the boiler plate from createapp.dev