This is a tic-tac-toe game that is impossible to win. The game is built using React and hosted on Vercel.
The algorithim is a minimax algorithim without alpha-beta pruning. The algorithim is a recursive function that takes in a board and a player. The function will return the best move for the player. The function will return a score of 1 if X wins or -1 if X loses. It also returns 0 if they reach a draw.
Visit the website at https://tictactoe.omar-ibrahim.com/
- Clone the repository
- Run
npm install
- Run
npm run dev
- Go to
localhost:3000
in your browser