connect-4 is a fun clone of the board game Connect 4 written in Java.
- Installer instructions:
- Head to the latest release.
- Download the latest installer for your system.
- Run the installer.
- Have fun! 👍
- Portable instructions:
- Head to the latest release.
- Download the correct
.zipfor your system. - Extract the files.
- Navigate to the
binfolder. - Run
connect-4(orconnect-4.batif you're on Windows).
Note:
- The installers are currently only available for Windows.
- If you're on Windows and wish to use a portable build, you can use
connect4-win-x64-x.x.zip(which ships with a JVM) orconnect4-win-x64-portable-x.x.zip(which has a windows executable. This option is recommended).
Note: This project should be built with JDK 25 but the build script will install it automatically if you don't already have a compatible JDK.
- Download this repository with the green
Codebutton. - Navigate to the project folder. You should see a
build.gradlefile. - Open a terminal in this directory and run
./gradlew run(orgradlew.bat runif you're on Windows Command Prompt) to run the game.
Note: This project should be built with JDK 25 but the build script will install it automatically if you don't already have a compatible JDK.
- Download this repository with the green
Codebutton. - Run the build command using one of the following options:
- Build portable images (this one is easier):
- Open
gradle.propertiesand change thejlinkTargetPlatformproperty to match the OS and architecture you wish to build for. - Run
./gradlew jlinkZip - Check the
buildfolder for the.zipimage. - Play it by extracting the zip and running the
connect-4in thebinfolder
- Open
- Build installers & executables:
- Check Oracle's website for info on your system's prerequisites.
- Open
gradle.propertiesand change thejpackageTargetPlatformproperty to match your operating system and architecture. This must match your current operating system and hardware. - Run
./gradlew jpackage - Check
build/jpackagefor the installer(s) andbuild/jpackage/Wordlefor the executable(s).
- Build portable images (this one is easier):
Contributions are welcome! Create an issue or open a pull request!
Note:
If editing on VSCode, run ./gradlew eclipse to fix errors in module-info.java that occur due to a bug in the java extension.
This project uses the MIT License.
This project was possible due to the following libraries: