Unlike gamification, GBL is a fundamentally different instructional paradigm embedding learning directly into the game experience. Rather than layering external rewards on traditional tasks, GBL integrates educational content within game narratives, challenges, and mechanics (Al-Azawi et al., 2016; Jayasinghe & Dharmaratne, 2013). This shift encourages intrinsic motivation by making the learning process itself enjoyable, curiosity-driven, and meaningful (Jayasinghe & Dharmaratne, 2013).

A useful lens for understanding this structural integration is the concept of meaningful play, which is defined as the relationship between player actions and system outcomes (Salen & Zimmerman, 2003). For play to be meaningful, this relationship must be both discernable, players can perceive how their actions affect the game; and integrated, those effects must influence future gameplay in a coherent way. This structural integration ensures that PCR is not an add-on but an essential part of the game system itself. In educational contexts, meaningful play reinforces learning by requiring students to think, act, and adapt within a responsive environment, which supports higher levels of motivation.

Building on this motivational foundation, GBL is particularly well-suited to address challenges in PCR by reframing the activity as a compelling in-game task. Rather than treating PCR as a separate assignment, GBL can embed it within story-driven scenarios, such as solving bugs to help stranded developers or assuming roles like “code detective” or “team leader” to unlock new levels or narrative progress. This design not only reinforces technical skills but also situates PCR within a meaningful context, enhancing engagement and perceived relevance. Evidence suggests that students exposed to such structured, game-based PCR environments show increased confidence and better knowledge retention (Ardic & Tuzun, 2021).

GBL has already proven effective across multiple domains of CS education, providing a strong precedent for its use in PCR. Educators have developed games to teach programming, algorithms, data structures, and software engineering principles (Schmitz et al., 2011; Shabanah et al., 2010; Videnovik et al., 2023). These range from simple quiz-based platforms to complex simulations and narrative-driven experiences. Through gameplay, students can explore abstract and difficult topics in a lower-stakes, exploratory setting. For example, a debugging game may challenge students to identify and fix errors in code, reinforcing both syntax and logic skills in an interactive way. This natural alignment between game tasks and learning objectives makes GBL a versatile tool in CS education.

In addition to cognitive engagement, GBL environments also support social learning through peer interaction, which strengthens the collaborative aspects of PCR. Many educational games incorporate cooperative or competitive elements that require students to make decisions together to succeed (Videnovik et al., 2023). This structure encourages meaningful dialogue, shared problem-solving, and peer feedback which are core components of effective PCR (Brown et al., 2020). The enjoyment of shared gameplay also contributes to students’ willingness to persist through complex tasks, making difficult concepts feel more approachable (Goshevski et al., 2017; Papastergiou, 2009).

This capacity to blend cognitive and social engagement is further enhanced by GBL’s ability to connect theory with practice through simulated real-world scenarios. Games can situate learners in authentic contexts, such as securing vulnerable code or leading a development team, thereby requiring them to apply theoretical knowledge to realistic problems (Chiang et al., 2011; Jayasinghe & Dharmaratne, 2013). These simulations help students understand the practical implications of what they’re learning, turning abstract knowledge into actionable skills. Narrative and storytelling further amplify this effect, as students become emotionally invested in the game’s outcome. A peer review mission framed as a rescue operation, for instance, gives students a sense of purpose that increases both attention and effort (Paxinos & Robertson, 2024).

Because these immersive experiences make learning personally meaningful, GBL fosters a sustained form of intrinsic motivation that supports deeper learning over time. Students report higher levels of enjoyment and often enter a state of flow (Csikszentmihalyi, 1990), where they are fully absorbed in the learning activity, while engaging with educational games (Papastergiou, 2009). Immediate feedback, a hallmark of well-designed games, reinforces autonomy and competence by allowing students to experiment, make mistakes, and adjust their strategies in real time (Perez et al., 2022). These dynamics align closely with the basic psychological needs described in SDT, making GBL a natural fit for motivation-enhancing interventions.

Empirical studies consistently show that GBL environments outperform traditional instructional methods not necessarily because of different content, but due to the increased motivation, engagement, and time-on-task they promote (Lopez-Fernandez et al., 2021). Students in game-based environments often demonstrate higher confidence in applying technical skills and are more likely to persist through challenging material. Social components, such as competition or cooperation, further satisfy the need for relatedness, reinforcing the motivation to continue learning (Videnovik et al., 2023). Taken together, these attributes make GBL a compelling strategy for addressing motivational and skill-development challenges in PCR within CS education.

Al-Azawi, R., Al-Faliti, F., & Al-Blushi, M. (2016). Educational gamification vs. game based learning: Comparative study. International Journal of Innovation, Management and Technology, 131–136. https://doi.org/10.18178/ijimt.2016.7.4.659
Ardic, B., & Tuzun, E. (2021). A serious game approach to introduce the code review practice. Journal of Software: Evolution and Process, 37(2), e2750. https://doi.org/10.1002/smr.2750
Brown, T., Walia, G., Radermacher, A., Singh, M., & Narasareddygari, M. R. (2020). Effectiveness of using guided peer code review to support learning of programming concepts in a CS2 course: a pilot study. 2020 ASEE Virtual Annual Conference Content Access Proceedings, 34504. https://doi.org/10.18260/1-2--34504
Chiang, I.-T., Shih, R.-C., Liu, E. Z.-F., & Lee, A. J.-Y. (2011). Using game-based learning and interactive peer assessment to improve career goals and objectives for college students. In M. Chang, W.-Y. Hwang, M.-P. Chen, & W. Müller (Eds.), Edutainment Technologies. Educational Games and Virtual Reality/Augmented Reality Applications (Vol. 6872, pp. 507–511). Springer Berlin Heidelberg. https://doi.org/10.1007/978-3-642-23456-9_91
Csikszentmihalyi, M. (1990). Flow: The psychology of optimal experience. Harper & Row.
Goshevski, D., Veljanoska, J., & Hatziapostolou, T. (2017). A review of gamification platforms for higher education. Proceedings of the 8th Balkan Conference in Informatics, 1–6. https://doi.org/10.1145/3136273.3136299
Jayasinghe, U., & Dharmaratne, A. (2013). Game based learning vs. gamification from the higher education students’ perspective. Proceedings of 2013 IEEE International Conference on Teaching, Assessment and Learning for Engineering (TALE), 683–688. https://doi.org/10.1109/TALE.2013.6654524
Lopez-Fernandez, D., Gordillo, A., Alarcon, P. P., & Tovar, E. (2021). Comparing traditional teaching and game-based learning using teacher-authored games on computer science education. IEEE Transactions on Education, 64(4), 367–373. https://doi.org/10.1109/TE.2021.3057849
Papastergiou, M. (2009). Digital game-based learning in high school computer science education: Impact on educational effectiveness and student motivation. Computers & Education, 52(1), 1–12. https://doi.org/10.1016/j.compedu.2008.06.004
Paxinos, S., & Robertson, D. (2024). Abuzaharen’s challenge: Building sustainability competencies through science-fiction narratives and game-based learning. European Conference on Games Based Learning, 18(1), 695–704. https://doi.org/10.34190/ecgbl.18.1.2689
Perez, R. F., Chung, S., Zastavker, Y. V., Bennett, V., Abdoun, T., & Harteveld, C. (2022). How can game-based learning affect engineering students’ confidence? 2022 IEEE Frontiers in Education Conference (FIE), 1–5. https://doi.org/10.1109/FIE56618.2022.9962463
Salen, K., & Zimmerman, E. (2003). Rules of play: Game design fundamentals. MIT Press.
Schmitz, B., Czauderna, A., & Klemke, R. (2011). Game based learning for computer science education.
Shabanah, S. S., Chen, J. X., Wechsler, H., Carr, D., & Wegman, E. (2010). Designing computer games to teach algorithms. 2010 Seventh International Conference on Information Technology: New Generations, 1119–1126. https://doi.org/10.1109/ITNG.2010.78
Videnovik, M., Vold, T., Kiønig, L., Madevska Bogdanova, A., & Trajkovik, V. (2023). Game-based learning in computer science education: A scoping literature review. International Journal of STEM Education, 10(1), 54. https://doi.org/10.1186/s40594-023-00447-2