Connect-4
A Project made for educational purposes while studying in Athens University of Economics & Business.
Video for this project: here
Programming Language: Java
The game known as Connect-4, Score-4, 4-in-a-line or 4-in-a-row. The AI uses the minimax algorithm, with alpha-beta pruning. A graphical interface is included. The user can click on the buttons or press the keys 1-7 to place a checker. To go back a move click on Undo option or press Ctrl+Z.
HOT TO RUN IN ECLIPSE:
-
Create a new Eclipse Java project.
-
Copy all .java files located in src folder of the repository to the src folder of the Eclipse project.
-
Copy res folder to the Eclipse project root.
-
Right-click the project folder on Project Explorer. Go to Properties->Java Build Path->Source. Click Add Folder.... Tick the res folder.
-
Run Gui.java. Another main method exist in the class ConsoleMain.
- A .jar executable is included as well. Java 8 and above is required to run. Have fun!!