TThis is a Kotlin client for the Hackatron multiplayer game server — a 2D lightcycle-style game inspired by Tron. Each player controls a moving entity that leaves a trail behind; colliding with any trail results in elimination. The client connects to the game server, handles incoming messages, and computes moves using pluggable strategies.
You need at least JDK 17 installed. We suggest using IntelliJ IDEA as an IDE.
- Download the Adopt OpenJDK installer MSI for Windows x86.
- Execute the MSI file
- When offered, select "Set JAVA_PATH variable" to be installed
- Continue installing until done.
Download the example code as a ZIP archive or clone it with git:
git@gitlab.fachschaften.org:foss-ag/hackatron-wrapper.git
Open a terminal and run:
Linux/MacOS:
./mvnw package
Windows:
.\mvnw.cmd package
For your convenience, you can find a description of the protocol in PROTOCOL.md
.
Please respect the rules of the competition:
- Only one connection to the server per team at any time.
- You must be able to explain your code and strategy
- Try to solve the competition with your own code. You might take a look at the internet for inspiration, but it is more fun if you come up with your own ideas ;)
GPLv3, so feel free to edit and share your improvements in public (e.g. on gitlab.fachschaften.org / Codeberg.org / GitHub.com) after the competition ended.