[Paper Review] A Python Engine for Teaching Artificial Intelligence in Games
This paper introduces GAIGE, a Python-based game engine designed to teach artificial intelligence in games through a structured sequence of seven assignments building a Multi-User Battle Arena (MOBA) game. The engine isolates AI components, enabling students to implement pathfinding, decision-making, and behavior control in a modular, autograded environment, resulting in improved student engagement and scalable course delivery in Game AI education.
Computer games play an important role in our society and motivate people to learn computer science. Since artificial intelligence is integral to most games, they can also be used to teach artificial intelligence. We introduce the Game AI Game Engine (GAIGE), a Python game engine specifically designed to teach about how AI is used in computer games. A progression of seven assignments builds toward a complete, working Multi-User Battle Arena (MOBA) game. We describe the engine, the assignments, and our experiences using it in a class on Game Artificial Intelligence.
Motivation & Objective
- To address the challenge of teaching Game AI in a way that integrates practical design with algorithmic implementation, especially in large-scale or online courses.
- To create a structured, modular learning progression that isolates AI components from general game mechanics, enabling focused student learning and autograded assessment.
- To motivate student interest in computer science and AI by leveraging the engaging context of game development.
- To support scalable instruction by enabling automated grading of complex AI implementations in game environments.
- To provide educators with a flexible framework for creating new assignments in procedural content generation, player modeling, and dynamic difficulty adjustment.
Proposed method
- GAIGE is a Python game engine that provides core game functionality except for AI logic, allowing students to focus solely on implementing AI algorithms.
- The curriculum is structured as seven progressive assignments, each focusing on a distinct AI technique such as pathfinding with A*, finite state machines, and behavior trees.
- Each assignment is designed to be independently autograded, with feedback mechanisms that support iterative learning and immediate performance evaluation.
- The engine's modularity allows students to use instructor-provided solutions (e.g., for pathfinding) without compromising later assignments, ensuring robustness and flexibility.
- The framework supports extensibility, enabling rapid development of new assignments—such as binary space partitioning or procedural map generation—based on student interest and course needs.
- A server-based autograder system was deployed to allow real-time submission and feedback, enhancing student engagement and performance.
Experimental results
Research questions
- RQ1How can a game engine be designed to teach Game AI in a way that balances pedagogical structure with real-world applicability?
- RQ2Can a modular, autograded assignment framework improve student learning outcomes in Game AI courses?
- RQ3To what extent does using a game context increase student motivation and engagement in AI education?
- RQ4How can AI components in games be isolated and taught progressively without requiring full game development?
- RQ5Can the framework be extended to support advanced topics like procedural content generation and player modeling?
Key findings
- The introduction of a server-based autograder with immediate feedback significantly improved student performance, raising the average grade on Assignment 2 to 7.5/10 after the addition of Assignment 1.5 on navigation mesh generation.
- Students frequently reused instructor-provided solutions for foundational components like pathfinding, yet this did not hinder performance on later assignments due to the engine’s modular design.
- Some student implementations of core AI components, such as pathfinding and behavior control, outperformed the instructor’s baseline solutions, demonstrating effective learning and innovation.
- The modular architecture of GAIGE enabled rapid development of new assignments—such as a binary space partitioning assignment—within a week, indicating strong extensibility.
- The framework successfully supported advanced graduate-level work, including a procedural map generation assignment based on player behavior metrics, showing potential for research integration.
- GAIGE enables scalable, autograded Game AI instruction, making it feasible to deliver such courses at large scale, especially in online or hybrid learning environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.