Engaging Young Learners with Testing Using the Code Critters Mutation Game

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Straubinger, Philipp, Bloch, Lena, Fraser, Gordon
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866914754068480000
author Straubinger, Philipp
Bloch, Lena
Fraser, Gordon
author_facet Straubinger, Philipp
Bloch, Lena
Fraser, Gordon
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2404_09246
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Engaging Young Learners with Testing Using the Code Critters Mutation Game
Straubinger, Philipp
Bloch, Lena
Fraser, Gordon
Software Engineering
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.
title Engaging Young Learners with Testing Using the Code Critters Mutation Game
topic Software Engineering
url https://arxiv.org/abs/2404.09246