https://github.com/nina1012/tic-tac-toe
Tic tac toe game 🎮 🕹
https://github.com/nina1012/tic-tac-toe
classes javascript minimax-algorithm tic-tac-toe
Last synced: 7 months ago
JSON representation
Tic tac toe game 🎮 🕹
- Host: GitHub
- URL: https://github.com/nina1012/tic-tac-toe
- Owner: nina1012
- Created: 2021-04-08T09:19:42.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-05-13T15:03:09.000Z (about 5 years ago)
- Last Synced: 2025-09-19T23:27:37.201Z (9 months ago)
- Topics: classes, javascript, minimax-algorithm, tic-tac-toe
- Language: JavaScript
- Homepage: https://tic-tac-toe-nina1012.vercel.app/
- Size: 21.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **Tic tac toe game**
This is in browser version of the famous [tic-tac-toe game](https://en.wikipedia.org/wiki/Tic-tac-toe).
[Live demo](https://tic-tac-toe-nina1012.vercel.app/)
This repo has 2 branches :
- master
- refactor-to-classes: this branch has all the functionality as code in master, but it is refactored to classes (player, board and game class)
### **Overview**
#### Features:
1. The game has **2** options:
- play against computer (unbeatable)
- play against friend
2. Players can choose marks (either **X** or **O**)
3. **Minimax algorithm** is used to make game impossible to win, when played against computer.
In the best case, player can draw.