论文标题
Kotlin的跨平台游戏
Cross-Platform Games in Kotlin
论文作者
论文摘要
该演示论文描述了一种使用Kotlin编程语言编写跨平台休闲游戏的简单且实用的方法。一个关键目的是使研究人员更容易演示他们的AI玩一系列游戏。纯Kotlin代码(使用任何Java图形库不包括在内)可以将其转移到JavaScript并在Web浏览器中运行。但是,编写将在Web浏览器中和JVM上进行不修改的Kotlin代码并不是一件容易的事。它需要严格遵守适当的方法。本文的贡献是提供一种包括软件设计在内的方法,并证明这是由AI或人类扮演的俄罗斯方面的工作。
This demo paper describes a simple and practical approach to writing cross-platform casual games using the Kotlin programming language. A key aim is to make it much easier for researchers to demonstrate their AI playing a range of games. Pure Kotlin code (which excludes using any Java graphics libraries) can be transpiled to JavaScript and run in a web browser. However, writing Kotlin code that will run without modification both in a web browser and on the JVM is not trivial; it requires strict adherence to an appropriate methodology. The contribution of this paper is to provide such a method including a software design and to demonstrate this working for Tetris, played either by AI or human.