An open API service indexing awesome lists of open source software.

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 🎮 🕹

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.