Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 days 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 (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-04T12:06:38.000Z (about 1 year ago)
- Last Synced: 2024-01-04T13:26:51.380Z (about 1 year 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
[![tic-tac-toe-image.png](https://i.postimg.cc/DfstN3N5/tic-tac-toe-image.png)](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.