Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aksh-bansal-dev/tic-tac-toe
Tic-tac-toe with unbeatable AI.
https://github.com/aksh-bansal-dev/tic-tac-toe
Last synced: 25 days ago
JSON representation
Tic-tac-toe with unbeatable AI.
- Host: GitHub
- URL: https://github.com/aksh-bansal-dev/tic-tac-toe
- Owner: Aksh-Bansal-dev
- License: mit
- Created: 2020-04-12T15:50:21.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-19T16:19:15.000Z (about 2 years ago)
- Last Synced: 2024-11-20T11:05:01.750Z (3 months ago)
- Language: JavaScript
- Homepage: https://aksh-bansal-dev.github.io/tic-tac-toe/
- Size: 251 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# tic-tac-toe
Tic-tac-toe with unbeatable AI.
It is an PWA, so it can be installed.## Link to site
[https://aksh-bansal-dev.github.io/tic-tac-toe/](https://aksh-bansal-dev.github.io/tic-tac-toe/)## Built with
- HTML
- CSS
- Typescript## AI
This app actually uses minimax algorithm to calculate the most optimal move. Basically, it calculates every possible outcome and then pick one with most points(most optimal).
It also considers that the other player will also choose the move which has least points(most optimal for him).