Kotlin中的跨平台游戏
Cross-Platform Games in Kotlin
摘要:
这篇演示论文描述了一种使用Kotlin程序设计语言编写跨平台休闲游戏的简单实用方法。一个关键目标是让研究人员更容易展示他们的AI玩一系列游戏。纯Kotlin代码(不包括使用任何Java图形库)可以转换为JavaScript并在Web浏览器中运行。然而,编写无需修改即可在Web浏览器和JVM上运行的Kotlin代码并不简单;它需要严格遵守适当的方法。本文的贡献是提供这样一种方法,包括软件设计,并证明这种工作的俄罗斯方块,无论是由人工智能或人类。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。