Skip to content

tarhi-saad/tic-tac-toe

Repository files navigation

Tic Tac Toe

A plain JS project. Using the factory pattern and the module pattern to organize the code.

This is a complete and an awesome Tic Tac Toe game, fully optimized for desktop and mobile, with a great design and all the necessary features you could think of (check Features for more details).

Artificial Intelligence: To create the AI for this game I used the Alpha-Beta Pruning algorithm, which is an optimization technique for the Mini-Max algorithm, a recursive or backtracking algorithm which is used in decision-making and game theory.

Home page

Tic Tac Toe

Table of contents

  1. Demo
  2. Technologies
  3. Features
  4. Development

Demo

Here is the working live demo: https://tarhi-saad.github.io/tic-tac-toe/.

Technologies

Features

  • Single & multiplayer mode
  • Three available difficulties in single player mode (Easy, Normal & Impossible)
  • Restart game
  • Save and display score
  • Reset score
  • Add player names & save all your games locally
  • Auto & manual switch turns
  • Great sound effects
  • Material design
  • A cartoon game style design
  • Cool CSS animations & SVG animations (board game, 'X' & 'O' marks)

Game page

Tic Tac Toe

Development

To set up this App locally, clone this repo to your desktop and run npm install to install all the dependencies. Then npm start to lunch the App.

License

You can check out the full license here

This project is licensed under the terms of the GNU GPLv3 license.

About

An awesome Tic Tac Toe game you can play in your browser!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published