Enjoy the classic Connect Four game! Choose GREEN or BLUE discs, aim to connect four in a row, and outsmart your opponent. Block their moves, strategize, and secure victory in this exciting head-to-head challenge!
This Connect Four implementation uses Monte Carlo Tree Search (MCTS) for advanced AI gameplay. Challenge a smart computer opponent or a friend in a thrilling duel of strategy and wits!
- Two-Player Mode: Challenge a friend in a traditional Connect Four battle.
- AI Opponent: Test your strategy against a computer player powered by MCTS for realistic and intelligent gameplay.
- Modern Design: A visually appealing grid and smooth gameplay mechanics enhance the overall experience.
Follow these steps to set up and run the game on your local machine:
- Clone the repository:
git clone https://github.com/jlokitha/connect-4-game.git
- Open the project in IntelliJ IDEA:
- Open the
pom.xml
file. - If prompted, select "Open as Project."
- Open the
- Reload the Maven dependencies via the Maven Tool Window.
- Configure the run settings:
- Navigate to
Run > Edit Configurations
. - Create a new Maven configuration.
- Set the command to
javafx:run
.
- Navigate to
- Run the configuration to launch the game.
This project is distributed under the MIT License. Feel free to use, modify, and share it as per the terms of the license.
© 2023 Janindu Lokitha