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
.zip
for your system. - Extract the files.
- Navigate to the
bin
folder. - Run
connect-4
(orconnect-4.bat
if 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 17 but the build script will install it automatically if you don't already have a compatible JDK.
- Download this repository with the green
Code
button. - Navigate to the project folder. You should see a
build.gradle
file. - Open a terminal in this directory and run
./gradlew run
(orgradlew.bat run
if you're on Windows Command Prompt) to run the game.
Note: This project should be built with JDK 17 but the build script will install it automatically if you don't already have a compatible JDK.
- Download this repository with the green
Code
button. - Run the build command using one of the following options:
- Build portable images (this one is easier):
- Open
gradle.properties
and change thejlinkTargetPlatform
property to match the OS and architecture you wish to build for. - Run
./gradlew jlinkZip
- Check the
build
folder for the.zip
image. - Play it by extracting the zip and running the
connect-4
in thebin
folder
- Open
- Build installers & executables:
- Check Oracle's website for info on your system's prerequisites.
- Open
gradle.properties
and change thejpackageTargetPlatform
property to match your operating system and architecture. This must match your current operating system and hardware. - Run
./gradlew jpackage
- Check
build/jpackage
for the installer(s) andbuild/jpackage/Wordle
for the executable(s).
- Build portable images (this one is easier):
This project uses the MIT License.
This project was possible due to the following libraries: