Bgw
BoardGameWork - Framework for creating 2D board game applications using Kotlin.
Install / Use
/learn @tudo-aqua/BgwREADME
BoardGameWork
<!--[](https://github.com/tudo-aqua/bgw/security/code-scanning)-->BoardGameWork (BGW) is a framework for creating 2D board game applications using Kotlin.
Start with BGW using the dedicated Getting Started guide, take a look at the complete API Reference or learn more concepts in the Advanced Usage section.
Additionally, three examples are available for MauMau, Sudoku and Tetris.
Visit the Playground to see BGW in action and try out some of its features.
<!-- GETTING STARTED -->Getting Started
Prerequisites
Before you can start using BGW, you will need a Java Development Kit (JDK) installed on your system. BGW requires at least Java 11 to run. You can download a compatible version of Azul Zulu OpenJDK from the official website.
Setup
Start by adding the latest version of BGW as a dependency to your project.
Gradle
implementation(group = "tools.aqua", name = "bgw-gui", version = "0.10")
Maven
<dependency>
<groupId>tools.aqua</groupId>
<artifactId>bgw-gui</artifactId>
<version>0.10</version>
</dependency>
When running on JDK 16 or later, you need to add the following JVM arguments to your run configuration:
Gradle
application {
applicationDefaultJvmArgs = listOf(
"--add-opens", "java.desktop/sun.awt=ALL-UNNAMED",
"--add-opens", "java.desktop/java.awt.peer=ALL-UNNAMED",
"--add-opens", "java.desktop/sun.lwawt=ALL-UNNAMED",
"--add-opens", "java.desktop/sun.lwawt.macosx=ALL-UNNAMED"
)
}
Maven
<configuration>
<jvmArguments>
--add-opens java.desktop/sun.awt=ALL-UNNAMED
--add-opens java.desktop/java.awt.peer=ALL-UNNAMED
--add-opens java.desktop/sun.lwawt=ALL-UNNAMED
--add-opens java.desktop/sun.lwawt.macosx=ALL-UNNAMED
</jvmArguments>
</configuration>
It is therefore recommended to explicitly specify the correct JVM target (e.g. 11 in this case) in your build system:
Gradle
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
Maven
<configuration>
<jvmTarget>11</jvmTarget>
</configuration>
The basic setup should now be complete. To learn more about creating your first board game application using BGW, continue with the Getting Started section or visit the Playground.
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
