This personal project is a classic Tic-Tac-Toe game developed using React, featuring an unbeatable AI implemented using the Minimax algorithm. The primary goal was to explore and learn the implementation of the Minimax algorithm within a fun and interactive environment.
- add options for easy, medium and hard
- add options for no AI
- convert to TypeScript
- Single-Player Mode: Play against a challenging AI opponent.
- Unbeatable AI: Implemented using the Minimax algorithm, ensuring the AI never loses.
- React Functional Components: Modern React development with functional components.
- Simple and Intuitive UI: A clean and easy-to-use interface, designed with SASS.
Clone the repository
git clone https://github.com/Gunnar50/react-tictactoe.git
Navigate to the project directory
cd react-tictactoe
Install Dependencies:
npm install
Start the Development Server:
npm run dev
This project was a journey into the realm of AI in games, focusing specifically on the implementation of the Minimax algorithm in a React-based application. The challenge was not only in creating a functional Tic-Tac-Toe game but also in ensuring the AI was unbeatable, providing an excellent opportunity to deepen my understanding of AI strategies in game development.
The project posed a series of challenges including:
- Deep understanding of React funcitonal components
- Learning about game play and game development
- Minimax algorithm
- Visual Studio Code
- React Functional Components
- SASS
- Minimax Algorithm
Contribuition, issues and feature requests are welcome!
Feel free to check the issues page
Give a start if you liked and this project helped you!
This project is open source and available under the MIT License.