AI Defenders: Large Language Model Opponents for Practising Mutation Testing in Code Defenders

Code Defenders is a mutation testing game in which students practise writing tests and mutants by competing against each other. This interaction makes learning about testing engaging, but it also creates a dependence on suitable opponents: students need other players for self-study, and instructors need class games where opposing teams remain active and balanced. To address this problem, we integrated Large Language Models (LLMs) as attackers and defenders into Code Defenders. Generating tests is a common use case for LLMs, but that does not make them meaningful players. We therefore evaluated the LLM players, driven by gpt-5.2, in a controlled study with 24 undergraduate students, where each student played one game against another student and one game against an LLM opponent. LLM defenders achieved higher coverage and mutation scores than student defenders, while LLM attackers largely matched student attackers. Attackers reported more challenge against LLM defenders, and submitted fewer mutants, more of which no test in the study killed. The LLM usage of the entire study cost under $10, making LLM players a promising enhancement of Code Defenders for self-study and classroom use.

Link
https://www.semanticscholar.org/paper/aee3cfeb3aa6951c07dc821bd5c566c75e74477a
Found by
Semantic Scholar
Authors
Aaron Prott, Gordon Fraser, Steffen Herbold
Organizations
University of Passau, Passau, Germany
Categories
evaluation
Published
2026-11-05
Last seen by the radar
2026-11-06
Citations
0
Influential citations
0
Radar score
31.51 / 100 (how it is scored)
Why it scored so
Also found via Crossref; Matched: evaluat; Primary record: Semantic Scholar
Related links
https://doi.org/10.1145/3856208.3856241
Is this record right? If you made this work and something here is wrong or missing, tell us what to fix.

More records found by Semantic Scholar