Skip to content

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.

License

Notifications You must be signed in to change notification settings

chriskormaris/Connect4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Connect-4

© 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.

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-4

Connect-5

connect-5

References

The GUI of the Java Swing application was inspired from this GitHub repository:

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages