Explorer source code of C language!


C is a representative programming language taught at universities; however, its mastery is not easy, and many studies have been conducted to enhance learners’ motivation and understanding of C. One such approach is gamification, which applies game elements and design to non-game domains to increase user motivation in those areas. In this study, we aim to develop an RPG-style dungeon game that assists in understanding C by allowing players to explore dungeons modeled on the structure and behavior of C source code. To achieve this, we have developed a system that automatically generates game maps based on the contents of the source code. The system creates flowcharts from the source code and reflects their outlines as maps, while placing events such as warps and characters to enrich the gameplay. In this research, we focused on basic syntactic elements of C, such as control structures, function calls, and scalar variable declarations, and demonstrated that maps reflecting these elements can be generated. Furthermore, by integrating the system with a debugger, we are developing a game in which players can explore the generated maps while deepening their understanding of program execution.