借助《Code Critters》变异游戏让青少年学习者参与测试学习
Engaging Young Learners with Testing Using the Code Critters Mutation Game
AI总结:
本研究针对编程教育中测试教学不足、缺乏趣味性的问题,开发了塔防风格的严肃游戏Code Critters,通过放置传送门区分正确/变异生物的玩法教授测试知识,经40名儿童实验验证可有效提升学习参与度。
摘要:
如今人人都学习编程,但编写代码离不开测试,遗憾的是测试很少被明确教授。测试往往被认为不够重要,或是人们觉得它不够有吸引力。测试其实可以很有趣:本文介绍了Code Critters(代码小怪兽),这是一款旨在以趣味方式教授测试概念的严肃游戏。游戏采用热门塔防游戏的风格,玩家需要策略性地放置魔法传送门,这些传送门要能区分行为符合正确代码描述的生物与发生变异、因此存在缺陷的生物。放置传送门的过程中,玩家其实是在进行测试:他们选择测试输入(即传送门的放置位置)和测试预言(即预期的行为),并观察生物在场景中移动、经过玩家传送门时的测试执行过程。一项涉及40名儿童的实证研究表明,他们会积极参与Code Critters游戏。孩子们的积极反馈证明他们喜欢玩这款游戏,部分儿童甚至在研究的教学场景之外,在家中也继续玩Code Critters。
英文摘要:
Everyone learns to code nowadays. Writing code, however, does not go without testing, which unfortunately rarely seems to be taught explicitly. Testing is often not deemed important enough or is just not perceived as sufficiently exciting. Testing can be exciting: In this paper, we introduce Code Critters, a serious game designed to teach testing concepts engagingly. In the style of popular tower defense games, players strategically position magical portals that need to distinguish between creatures exhibiting the behavior described by correct code from those that are mutated, and thus faulty. When placing portals, players are implicitly testing: They choose test inputs (i.e., where to place portals), as well as test oracles (i.e., what behavior to expect), and they observe test executions as the creatures wander across the landscape passing the players' portals. An empirical study involving 40 children demonstrates that they actively engage with Code Critters. Their positive feedback provides evidence that they enjoyed playing the game, and some of the children even continued to play Code Critters at home, outside the educational setting of our study.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。