Skip to content

React | JavaScript | Minimax Algorithm - Classic Tic-Tac-Toe game developed to learn more about algorithms and the minimax algorithm.

Notifications You must be signed in to change notification settings

Gunnar50/react-tictactoe-minimax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-Tac-Toe

🌐 Project

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.

main page

TODO:

  • add options for easy, medium and hard
  • add options for no AI
  • convert to TypeScript

✨ Features

  • 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.

🔧 Installation and Setup

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

🧠 Reflection

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

🛠️ Technology Stack

  • Visual Studio Code
  • React Functional Components
  • SASS
  • Minimax Algorithm

🤝 Contributing

Contribuition, issues and feature requests are welcome!

Feel free to check the issues page

⭐️ Show your support

Give a start if you liked and this project helped you!

📝 License

This project is open source and available under the MIT License.

About

React | JavaScript | Minimax Algorithm - Classic Tic-Tac-Toe game developed to learn more about algorithms and the minimax algorithm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published