Skip to main content
QUICK REVIEW

[Paper Review] DeepCrawl: Deep Reinforcement Learning for Turn-based Strategy Games

Alessandro Sestini, Alexander Kuhnle|arXiv (Cornell University)|Dec 3, 2020
Reinforcement Learning in RoboticsComputer Science14 references5 citations
TL;DR

This paper presents DeepCrawl, a turn-based Roguelike game prototype where non-player characters (NPCs) are controlled by deep reinforcement learning (DRL) policy networks trained via Proximal Policy Optimization (PPO). The system successfully generates credible, beatable, and varied NPC behaviors without hand-coded strategies, demonstrating that DRL can serve as a practical game design tool for creating engaging, non-superhuman AI opponents in mobile and desktop games.

ABSTRACT

In this paper we introduce DeepCrawl, a fully-playable Roguelike prototype for iOS and Android in which all agents are controlled by policy networks trained using Deep Reinforcement Learning (DRL). Our aim is to understand whether recent advances in DRL can be used to develop convincing behavioral models for non-player characters in videogames. We begin with an analysis of requirements that such an AI system should satisfy in order to be practically applicable in video game development, and identify the elements of the DRL model used in the DeepCrawl prototype. The successes and limitations of DeepCrawl are documented through a series of playability tests performed on the final game. We believe that the techniques we propose offer insight into innovative new avenues for the development of behaviors for non-player characters in video games, as they offer the potential to overcome critical issues with

Motivation & Objective

  • To investigate whether deep reinforcement learning (DRL) can be used as a practical game design tool for creating compelling, non-superhuman NPC behaviors in video games.
  • To develop a lightweight, deployable DRL framework that supports diverse NPC types through parameter tuning, suitable for mobile platforms like iOS and Android.
  • To balance NPC difficulty so agents are challenging but beatable, ensuring enjoyable and credible gameplay experiences.
  • To evaluate whether DRL can produce varied, strategy-based behaviors without requiring hand-coded AI rules or prior behavioral specifications.

Proposed method

  • The game uses a turn-based Roguelike environment with procedural dungeon levels, where the player fights multiple enemy agents per level.
  • NPC agents are controlled by policy networks trained via Proximal Policy Optimization (PPO), an actor-critic deep reinforcement learning algorithm.
  • The policy and value networks share a common convolutional neural network architecture, with input features including agent stats, environment state, and action space.
  • A curriculum learning strategy is applied, gradually increasing task complexity to accelerate training and improve final performance.
  • Sparse rewards are used: +10 for victory, -10 for death, and 0 for reaching step limit, with no dense shaping or hand-designed reward functions.
  • Hyperparameters include a policy learning rate of $10^{-6}$, baseline learning rate of $10^{-4}$, discount factor $\gamma = 0.99$, and exploration rate $\epsilon = 0.2$.

Experimental results

Research questions

  • RQ1Can deep reinforcement learning be used to train NPCs that are both credible and beatable, avoiding the pitfalls of superhuman or trivial AI?
  • RQ2To what extent can a single DRL framework generate diverse, strategy-based behaviors across different NPC types using only parameter changes?
  • RQ3Does curriculum learning significantly improve training efficiency and final policy quality in a sparse-reward, turn-based game environment?
  • RQ4Can DRL produce effective NPC behaviors without prior knowledge or hand-coded rules, relying solely on sparse rewards?

Key findings

  • The use of curriculum learning in training significantly accelerated convergence and improved final performance, with agents achieving higher average rewards compared to training without curriculum.
  • Players in playability tests perceived the NPC agents as intelligent and strategically coherent, with behaviors that varied meaningfully based on class (e.g., warrior, archer, ranger), indicating successful behavioral diversity.
  • Despite sparse rewards, the DRL agents learned effective strategies without any prior behavioral specifications, demonstrating the model’s ability to discover complex tactics autonomously.
  • All 10 playtesters found the game enjoyable and beatable with attention and time, confirming that the agents were challenging but not superhuman, supporting the goal of balanced gameplay.
  • The agents’ behaviors were rated as comparable or superior to those in other Roguelike games, with testers noting high replay value due to varied enemy tactics.
  • The DRL framework proved deployable on mobile platforms, with a lightweight network architecture enabling efficient inference on mobile devices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.