arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2304.02246cs.SEcs.CY
收藏

Code Critters:一款基于积木的测试游戏

Code Critters: A Block-Based Testing Game

Philipp Straubinger, Laura Caspari, Gordon Fraser

AI总结:

为解决编程教育中测试常被忽视的问题,本文提出了一款基于积木的塔防游戏Code Critters,通过放置魔法地雷区分正确与错误代码,将测试输入和预言融入游戏,使测试变得有趣且易于年轻学习者上手。

摘要:

学习编程在学校、高等教育和个人学习中已变得很普遍。尽管测试是编程的重要方面,但在教育中却常被忽视,原因是被认为缺乏时间和知识,或仅仅因为测试被认为不那么重要或有趣。为了使测试更具吸引力,我们因此引入了Code Critters,一款基于测试概念的塔防游戏:游戏的目标是沿着小“生物”从家到塔的路线放置魔法地雷,使得地雷能区分执行正确代码的生物和执行错误代码的生物。代码使用基于积木的语言进行显示和编辑,以使游戏对年轻学习者更易上手。地雷编码了测试输入以及测试预言,从而使测试成为游戏不可或缺且有趣的组成部分。

英文摘要:

Learning to program has become common in schools, higher education and individual learning. Although testing is an important aspect of programming, it is often neglected in education due to a perceived lack of time and knowledge, or simply because testing is considered less important or fun. To make testing more engaging, we therefore introduce Code Critters, a Tower Defense game based on testing concepts: The aim of the game is to place magic mines along the route taken by small "critters" from their home to a tower, such that the mines distinguish between critters executing correct code from those executing buggy code. Code is shown and edited using a block-based language to make the game accessible for younger learners. The mines encode test inputs as well as test oracles, thus making testing an integral and fun component of the game.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑