Skip to content

thefattestcat/minimax-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Artificial Intelligence - Minimax implementation on tic-tac-toe

To view online version go to https://young-peak-60006.herokuapp.com/

AwesomeScreensho.mp4

Pre-requisites

Requires the latest versions of both Node.js and NPM installed onto your machine. Once they are both installed, clone this git repository. Then, in the cloned project directory, run:

nodejs - https://nodejs.org/en/ npm - https://www.npmjs.com/get-npm

npm install

to install all project dependencies.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

All algorithms are in /src/components/games/Tictactoe/Tictactoe.jsx

-minimax() Depth-first minimax
-minimaxComplete() Complete tree minimax -stateEval() Evaluation function, as given in assignment