© Created by: Christos Kormaris, Athens 2016
Programming Language: Java
Video for this project:
Download .jar
executable:
This is the game known as Connect-4
, Score-4
, 4-in-a-line
or 4-in-a-row
.
This project was made for educational purposes while studying in Athens University of Economics & Business.
The AI was based on code from the labs of the university.
It uses the Minimax
algorithm, optionally 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
.
To redo a move click on Redo
option or press Ctrl+Y
.
Run the class GUI
, which exists in the package com.chriskormaris.connect4.gui
.
You can also run the application in the console, from the classes Connect4
and Connect5
,
which exist in the package com.chriskormaris.connect4.console
.
A .jar
executable is included as well.
Java 8 and above is required to run. Have fun!!
The GUI of the Java Swing application was inspired from this GitHub repository: