This is a minimal snake game with ncurses UI written in Kotlin using GraalVM for interop with C. It re-implements Kotlin/Native snake to be able to compare Kotlin/Native and GraalVM C interop.
- download and unpack GraalVM
- starting from graal version
vm-19.0.0
native-image has to be installed manually./gu install native-image
- in the
makefile
update:graal-native-image
to specify path tonative-image
in GraalVM directorykotlin-jars-classpath
to specify path to Kotlin jarsncurses-lib
to specify path to ncurses binary
- use
make
to compile project and generate binary via GraalVM - run
snake
from the project folder