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
Here is the working live demo: https://tarhi-saad.github.io/tic-tac-toe/.
-
Javascript modules, ES6
-
mdbootstrap: A Material Design UI kit
-
The Web Storage API
- 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
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.
You can check out the full license here
This project is licensed under the terms of the GNU GPLv3 license.