https://github.com/ehtishama/tictactoe_ai
Implementation of the minmax algorithm on the 3x3 Tic-tac-toe grid.
https://github.com/ehtishama/tictactoe_ai
ai reactjs
Last synced: 4 months ago
JSON representation
Implementation of the minmax algorithm on the 3x3 Tic-tac-toe grid.
- Host: GitHub
- URL: https://github.com/ehtishama/tictactoe_ai
- Owner: ehtishama
- Created: 2023-03-04T18:56:02.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T12:06:38.000Z (over 1 year ago)
- Last Synced: 2025-01-04T06:19:31.897Z (6 months ago)
- Topics: ai, reactjs
- Language: JavaScript
- Homepage: https://tictactoe-minmax.netlify.app/
- Size: 172 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Play TicTacToe against AI
[](https://postimg.cc/SjSTX3kz)
This React projects implements the minmax algorithm on a simple 3x3 tic tac toe grid. The algorithm always ensures to pick a move with minimum of the maximum possible losses. Hence it is impossible to win against it in a 3x3 grid.## How to run
To run this project on your system run the following command:### `npm start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.