Table of Contents
Connect4 AI
📝 Description
A simple Connect4 made with C++ and SFML for the window. Currently, only the Minimax with Alpha Beta Pruning is implemented. Maybe, in the future, I'll implement other algorithms if I want to (such as MCTS?).
🎥 Demo Minimax with Alpha Beta Pruning
💡 How to use
🪟 Windows
If you've a C/C++ IDE, you should already have cmake
and gcc
/g++
. If not, then install CMake here and gcc/g++ here.
- Clone the repository
- Initialize the SFML submodule
- Build with CMake
- Build the project using make inside the newly created output folder
&&
- Run the
.exe
🐧 Linux / WSL
- Run the holy command
- Install the following packages
- Clone the repository
- Initialize the SFML submodule
- Build with CMake
- Build the project using make inside the newly created output folder
&& &&
- Run the file!
&&
📄 Note
On Windows, it will probably be easier to run the project using an IDE such as CLion.
No cache issue.