Abstract & Overview
Gamification is a popular pedagogical approach in computer science education, and advances in large language models (LLMs) enable dynamic and engaging learning experiences, including competition driven by artificial intelligence (AI). This study introduces Quack the Code, a game-show-themed learning tool where students teach an LLM-powered ''debug duck'' while competing in an AI-hosted game. AI was used to generate personalized avatars, usernames, questions, host responses, and interactions with game elements. Offered to undergraduate computer science students (N=25) over a 16-week semester, the game was used repeatedly, mainly near quiz and exam periods. Most of the students (87%) preferred non-competitive play and focused on Java Basics, the default topic. The students were divided when choosing the type of question, with 45% requesting the default option of code debugging exercises and 47% requesting multiple choice questions. The students also changed the difficulty of the question from the default setting (44%) to the most difficult setting (37%). Focus groups highlighted positive reactions to competition, AI interactivity, and customization, but noted challenges with unclear instructions and user interfaces. The results suggest that LLM-powered gamification can enhance engagement and learning, with future improvements focused on usability and curriculum integration to increase participation and impact.