Skip to content

Latest commit

 

History

History
16 lines (15 loc) · 927 Bytes

readme.md

File metadata and controls

16 lines (15 loc) · 927 Bytes

What is this?

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.

How to use?

  • 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 to native-image in GraalVM directory
    • kotlin-jars-classpath to specify path to Kotlin jars
    • ncurses-lib to specify path to ncurses binary
  • use make to compile project and generate binary via GraalVM
  • run snake from the project folder