On Automating Video Game Regression Testing by Planning and Learning

Read original: arXiv:2402.12393 - Published 4/3/2024 by Tom'av{s} Balyo, G. Michael Youngblood, Filip Dvov{r}'ak, Luk'av{s} Chrpa, Roman Bart'ak
Total Score

0

On Automating Video Game Regression Testing by Planning and Learning

Sign in to get full access

or

If you already have an account, we'll log you in

Overview

  • This paper proposes an approach for automating video game testing using planning and learning techniques.
  • The authors aim to address the challenge of ensuring video games function correctly and provide a positive player experience.
  • The proposed system combines planning algorithms to generate test cases and reinforcement learning to optimize gameplay.
  • Experiments on several video game environments demonstrate the effectiveness of the approach in discovering bugs and optimizing gameplay.

Plain English Explanation

The video game industry faces the challenge of thoroughly testing games to ensure they function correctly and provide an enjoyable experience for players. Manual testing can be time-consuming and expensive. This paper presents an automated approach that combines two powerful AI techniques – planning and reinforcement learning – to streamline the testing process.

The planning algorithms are used to generate a diverse set of test cases, exploring different scenarios and interactions within the game. These test cases aim to uncover potential bugs or issues that might arise during gameplay. The reinforcement learning component then takes over, using an intelligent agent to play through the game and optimize the gameplay experience. By learning from the gameplay data, the system can identify ways to improve the game's responsiveness, difficulty, and overall fun factor.

The researchers evaluated their approach on several video game environments, demonstrating its ability to effectively discover bugs and optimize gameplay. This automated testing framework could save game developers significant time and resources, allowing them to focus on creating engaging and polished gaming experiences.

Technical Explanation

The paper proposes an approach for automating video game testing by combining planning and reinforcement learning techniques. The planning component generates diverse test cases that explore different game states and interactions, with the goal of uncovering potential bugs or issues. The reinforcement learning component then takes over, using an intelligent agent to play through the game and optimize the gameplay experience.

The planning module leverages a hierarchical task network (HTN) planner to generate test cases. HTN planning is a powerful technique that can capture the high-level structure of a game, allowing the system to explore a wide range of possible scenarios. The reinforcement learning module uses a deep Q-network (DQN) to learn an optimal policy for playing the game, based on feedback from the game environment.

The researchers evaluated their approach on several video game environments, including PacMan, Zelda, and Mario. The results demonstrate the system's ability to effectively discover bugs and optimize gameplay. For example, in the Zelda game, the automated testing was able to identify issues with the collision detection system and find ways to improve the player's movement and combat abilities.

Critical Analysis

The paper presents a promising approach for automating video game testing, but it also acknowledges several limitations and areas for further research. One key limitation is the reliance on access to the game's source code and internal state, which may not always be available in real-world scenarios. The authors suggest exploring black-box testing methods that do not require such access.

Additionally, the paper focuses on single-player games, whereas many modern video games involve complex multiplayer interactions and emergent behavior. Extending the proposed framework to handle such scenarios would be an important next step.

Another area for improvement is the scalability of the approach, as the planning and reinforcement learning components may become computationally expensive as the complexity of the game increases. Exploring more efficient algorithms or hybrid approaches could help address this challenge.

Overall, the paper provides a solid foundation for automating video game testing and highlights the potential benefits of combining planning and learning techniques. Further research and development in this area could lead to significant advancements in the way video games are tested and developed.

Conclusion

This paper presents an innovative approach for automating video game testing using a combination of planning and reinforcement learning techniques. By generating diverse test cases and optimizing gameplay through an intelligent agent, the proposed system can effectively discover bugs and improve the overall player experience.

The results demonstrate the potential of this automated testing framework to save game developers time and resources, allowing them to focus on creating engaging and polished gaming experiences. While the current approach has some limitations, the underlying ideas and techniques provide a promising path forward for advancing the state of the art in video game testing and development.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Follow @aimodelsfyi on 𝕏 →

Related Papers

On Automating Video Game Regression Testing by Planning and Learning
Total Score

0

On Automating Video Game Regression Testing by Planning and Learning

Tom'av{s} Balyo, G. Michael Youngblood, Filip Dvov{r}'ak, Luk'av{s} Chrpa, Roman Bart'ak

In this paper, we propose a method and workflow for automating regression testing of certain video game aspects using automated planning and incremental action model learning techniques. The basic idea is to use detailed game logs and incremental action model learning techniques to maintain a formal model in the planning domain description language (PDDL) of the gameplay mechanics. The workflow enables efficient cooperation of game developers without any experience with PDDL or other formal systems and a person experienced with PDDL modeling but no game development skills. We describe the method and workflow in general and then demonstrate it on a concrete proof-of-concept example -- a simple role-playing game provided as one of the tutorial projects in the popular game development engine Unity. This paper presents the first step towards minimizing or even eliminating the need for a modeling expert in the workflow, thus making automated planning accessible to a broader audience.

Read more

4/3/2024

Learning to Select Goals in Automated Planning with Deep-Q Learning
Total Score

0

Learning to Select Goals in Automated Planning with Deep-Q Learning

Carlos N'u~nez-Molina, Juan Fern'andez-Olivares, Ra'ul P'erez

In this work we propose a planning and acting architecture endowed with a module which learns to select subgoals with Deep Q-Learning. This allows us to decrease the load of a planner when faced with scenarios with real-time restrictions. We have trained this architecture on a video game environment used as a standard test-bed for intelligent systems applications, testing it on different levels of the same game to evaluate its generalization abilities. We have measured the performance of our approach as more training data is made available, as well as compared it with both a state-of-the-art, classical planner and the standard Deep Q-Learning algorithm. The results obtained show our model performs better than the alternative methods considered, when both plan quality (plan length) and time requirements are taken into account. On the one hand, it is more sample-efficient than standard Deep Q-Learning, and it is able to generalize better across levels. On the other hand, it reduces problem-solving time when compared with a state-of-the-art automated planner, at the expense of obtaining plans with only 9% more actions.

Read more

6/24/2024

Reinforcement Learning for High-Level Strategic Control in Tower Defense Games
Total Score

0

Reinforcement Learning for High-Level Strategic Control in Tower Defense Games

Joakim Bergdahl, Alessandro Sestini, Linus Gissl'en

In strategy games, one of the most important aspects of game design is maintaining a sense of challenge for players. Many mobile titles feature quick gameplay loops that allow players to progress steadily, requiring an abundance of levels and puzzles to prevent them from reaching the end too quickly. As with any content creation, testing and validation are essential to ensure engaging gameplay mechanics, enjoyable game assets, and playable levels. In this paper, we propose an automated approach that can be leveraged for gameplay testing and validation that combines traditional scripted methods with reinforcement learning, reaping the benefits of both approaches while adapting to new situations similarly to how a human player would. We test our solution on a popular tower defense game, Plants vs. Zombies. The results show that combining a learned approach, such as reinforcement learning, with a scripted AI produces a higher-performing and more robust agent than using only heuristic AI, achieving a 57.12% success rate compared to 47.95% in a set of 40 levels. Moreover, the results demonstrate the difficulty of training a general agent for this type of puzzle-like game.

Read more

6/13/2024

🏅

Total Score

0

Online Test Synthesis From Requirements: Enhancing Reinforcement Learning with Game Theory

Ocan Sankur (DEVINE, UR), Thierry J'eron (DEVINE, UR), Nicolas Markey (DEVINE, UR), David Mentr'e (MERCE-France), Reiya Noguchi

We consider the automatic online synthesis of black-box test cases from functional requirements specified as automata for reactive implementations. The goal of the tester is to reach some given state, so as to satisfy a coverage criterion, while monitoring the violation of the requirements. We develop an approach based on Monte Carlo Tree Search, which is a classical technique in reinforcement learning for efficiently selecting promising inputs. Seeing the automata requirements as a game between the implementation and the tester, we develop a heuristic by biasing the search towards inputs that are promising in this game. We experimentally show that our heuristic accelerates the convergence of the Monte Carlo Tree Search algorithm, thus improving the performance of testing.

Read more

7/30/2024