Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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.

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.