Objective
Programming is hard for many vocational students. They often start with little experience, struggle with syntax and abstract logic, and lose motivation. Game-style learning (gamification), which uses goals, challenges, badges and scores, is one way to keep students engaged. But most gamified systems give the same fixed feedback to everyone, so they cannot react to what an individual student is stuck on.
The researchers wanted to know whether adding real-time AI-mediated feedback (hints and error explanations written by a large language model while students work) to a gamified Java course would help. They built a platform on a teaching model called GAFCC, which stands for Goal, Attention, Feedback, Challenge and Consolidation. They also looked at interaction-related motivation, measured with the ARCS model, which splits motivation into four parts: attention, relevance, confidence and satisfaction.
The study tested these questions:
- Does the AI-enhanced platform lead to higher programming achievement than the same gamified platform without AI?
- Does it lead to higher attention, relevance, confidence and satisfaction?
Methods
This was a quasi-experiment. Students were not randomly assigned. They were placed in groups based on their existing classes. This kind of design can show differences between groups, but it cannot rule out that the groups differed in other ways to begin with.
The 90 participants were first-year students in an introductory programming course at a vocational college in Southeast China. There were 45 in the experimental group (called AI-GAME) and 45 in the comparison group (called GAME). Both groups used the same board-game-style platform, built with Articulate Storyline 360, with the same Java content, video lessons, quizzes and debugging tasks, based on one textbook and aligned with national vocational standards. The only planned difference was the feedback. AI-GAME students could ask for context-specific error explanations and step-by-step hints from a large language model reached through an API. The system mixed preset rules with AI-generated replies, so repeated errors brought more explicit hints. GAME students got only fixed, non-adaptive feedback.
The study ran for 4 weeks. In week 1 everyone took a 60-minute pre-test. In weeks 2 and 3, both groups did 80 minutes of gamified activities each week. In week 4 they took an 80-minute post-test and a motivation questionnaire.
Programming achievement was measured with the Computer Programming Achievement Test (CPAT), 30 items made by the researchers and reviewed by three programming education experts. Its reliability (KR-20) was 0.78 in the main study. Motivation was measured with a 36-item, five-point survey, the Instructional Materials Motivation Survey (IMMS), with reliability values from .85 to .90. Results were analyzed with ANCOVA, a method that compares groups after adjusting for pre-test scores. The authors report ethics approval from Universiti Sains Malaysia and written consent from participants.
Key Findings
Students in the AI-enhanced condition scored higher on the programming test and rated their motivation higher on all four ARCS dimensions.
Programming achievement
- On the post-test, the AI-GAME group averaged 85.67 and the GAME group averaged 73.78.
- After adjusting for pre-test scores, the averages were 85.96 and 73.62. The difference was statistically significant, F(1, 87) = 40.31, p < .001, with a partial eta squared of 0.32, which the authors call a substantial effect.
- The pre-test averages were 20.18 for AI-GAME and 24.71 for GAME, so the AI group started lower and ended higher.
- The authors checked the usual assumptions for the method. One group showed slight non-normality (p = .021), but they say the method tolerates moderate departures like this, and the groups were equal in size.
Motivation (adjusted for pre-test scores)
- Attention: 3.85 for AI-GAME and 3.39 for GAME (F = 52.04, p < .001, partial eta squared 0.37, large).
- Relevance: 3.93 and 3.38 (F = 58.65, p < .001, partial eta squared 0.40, large). The raw averages were 3.93 and 3.39.
- Confidence: 3.74 and 3.51 (F = 8.95, p = .004, partial eta squared 0.09, a smaller but meaningful effect).
- Satisfaction: 3.80 and 3.44 (F = 23.56, p < .001, partial eta squared 0.21, large).
Individual survey items
- Some single items showed significant group differences in favor of AI-GAME. These were three attention items (Q1, Q2, Q10), three relevance items (Q14, Q18, Q19) and one confidence item (Q22), all at p < .05.
- The other survey items did not show a significant difference between the two groups, so the overall gains come from only some of the individual questions.
- The attention and relevance gains were therefore the clearest result, while the confidence and satisfaction gains were smaller and rest on fewer items.
- The authors say the strongest gains were in feedback-driven and application-oriented parts of motivation, and that confidence and satisfaction changed less.
The authors note that the pre-test score did not significantly affect the motivation results, so they conclude baseline differences did not strongly shape them.
Implications
The authors suggest that teachers can use AI tools to give immediate feedback during coding tasks and help with error correction. They also suggest tying the AI support to structured game elements such as goal setting and step-by-step challenges to keep students engaged. They stress that AI should be a supplement to the teacher, not a replacement, and that it should support personalized learning without taking over teacher guidance.
For teachers
- The authors recommend giving beginners fast, task-specific hints at the moment they hit an error, instead of delayed feedback.
- The platform in this study kept the same content and game structure for both groups, so the added value came from the feedback layer. Teachers who already use gamified lessons could test adding AI hints to one class first.
For researchers and developers
- The authors say the explanations they offer, such as adaptive scaffolding and lower mental load, are inferred, not tested. Tools should log how students interact so these ideas can be checked.
Our reading (not the authors' recommendation):
- Because classes were not randomly assigned and the study was short, school leaders should treat these results as a promising sign from one college, not as proof that the same gains will appear in other courses.
- If you try something similar, compare your own students' scores before and after, and watch whether students depend on the hints instead of working through errors themselves.
Limitations
The authors name four limits. The intervention lasted only two weeks, so a novelty effect (extra interest because something is new) may explain part of the results. The 90 students came from a single vocational college in China, so results may not apply to other settings. The study did not control for students' digital literacy or earlier experience with technology. The authors also say they did not measure thinking or interaction processes, so their explanations of why the AI feedback worked are inferences, not verified.
The paper does not mention, but the groups were existing classes, and the pre-test averages differed (20.18 and 24.71). The statistical adjustment helps, but other differences between classes, such as the teacher or class atmosphere, could still matter.
The paper does not mention, but motivation was measured only after the intervention, with a self-report survey, so there is no before-and-after motivation comparison. The paper does not mention, but the test and the survey were made or adapted by the researchers, and we do not know whether the people scoring them knew which group each student was in.
The paper does not mention, but it gives no details of how the AI hints were checked for accuracy, which matters because a language model can give wrong explanations.
Future Directions
The authors recommend several next steps:
- Run longer studies to see whether the benefits last after the novelty wears off.
- Use larger and more varied samples from several institutions and regions to test whether the results hold elsewhere.
- Measure digital literacy and treat it as a control or as a factor that changes the effect.
- Collect process data, such as interaction logs, mental-load measures and learning analytics, to understand how AI feedback affects learning.
- Test the GAFCC model in other subjects and cultures, since its use beyond this setting still needs evidence.
An open question the study leaves is whether the gain comes from the AI feedback itself or from students getting any quick, personal feedback, because the comparison group received only fixed feedback and no human feedback alternative.
The bottom line: In this two-week study of 90 first-year vocational students in China, the group that used a gamified Java course with real-time AI feedback scored higher on the programming test and reported stronger motivation than the group with fixed feedback. The biggest differences were in attention and relevance. Because classes were not randomly assigned, the study was short and it took place in one college, the results are a promising sign, not proof. Teachers could try AI hints as a supplement, while checking the hints and keeping their own guidance.
Comments 0
No comments yet. Be the first to share a thought.
Get new research summaries by email
Every new summary each morning, a weekly digest, or a monthly report. You choose, and you can unsubscribe in one click.