Connect4
Connect4 copied to clipboard
A game known as Connect4, Score4, 4-in-a-line or 4-in-a-row. Modes: Human Vs AI, Human Vs Human, AI Vs AI. Written in Java.
Connect-4
© Created by: Christos Kormaris, Athens 2016
Programming Language: Java
Video for this project:
- https://www.youtube.com/watch?v=SxstLdf9LkE
Download .jar executable:
- https://drive.google.com/file/d/1mxqJUTVwxZt7ebqhO-xqkqOZr1mRtKTW
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.
HOT TO RUN
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!!
Screenshots
Connect-4

Connect-5

References
The GUI of the Java Swing application was inspired from this GitHub repository:
- https://github.com/0xadada/smart-connect-four