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.