This application lets you play Connect4 (German: VierGewinnt) with your friends. You can either play a classic game with 6 by 7 field or customize the field to other sizes. Since this is a digital version of a game it allows for special modifications like adding bomb chips which you can enable optionally and they enable new tactics.
Game Field:
Game Config:
Lobby:
Windows:
The application is implemented in Java and also distributed through runnable .jar files. You need a Java Runtime Environment (8 or higher) to run the following programs:
The game is implemented as a Server-Client application. Thus there need to be one server where the clients can connect to.
- Run VierGewinntServer
- Press the button to start it (default port 1000 is used)
- Configure port forwarding (if you have players outside your local network):
- Open the config page of your router
- Setup portforwarding to the computer where the server runs (find out its local IP) with port 1000 (default)
- Important:
- Players outside the servers local network must use the routers public IP
- Players inside the servers local network just use its local IP (usually something like 192.168...)
- Start VierGewinntClient
- Click "Lobby" > "Verbinden"(Connect)
- Enter a nick, the IP of the server and the port (1000)
- Click "Verbinden"
- In the Lobby click "Spielen" and configure your game
- Click "Anfrage Senden" and wait for a reply of your teammate
- You are read to go!
- Controls:
- Left/Right arrow -> Move chip left/right
- Down arrow -> Insert
- Up arrow -> Change between normal chip and bomb (if enabled)
- Explosion: Double click on your bomb in the field when its your turn
Hint: The game chat is equal to the whipser chat
- Go to VierGewinnt directory
- Run: javac -d bin --module-path src $(find src -name "*.java")
- Copy: src/images (and src/Help.txt) to bin/images (and bin/Help.txt)
- Run: jlink --module-path "bin;$JAVA_HOME/jmods" --add-modules vierGewinnt --launcher VierGewinnt=vierGewinnt/vierGewinnt.StartClient --output dist --strip-debug --compress 2 --no-header-files --no-man-pages
- Run: jpackage -n VierGewinnt --type app-image -m vierGewinnt/vierGewinnt.StartClient --runtime-image dist