Back to search

Universitat Oberta de Catalunya (UOC)

Warbringers.py: a wargame for analyzing stochastic and evolutionary strategies in multi-action adversary scenarios

Abstract

dc:description.abstract

This work presents Warbringers.py, a perfect-information wargame simulation framework designed for analyzing and comparing Artificial Intelligence (AI) strategies in multi-action stochastic adversarial scenarios. The framework simulates tactical battles where multiple units concurrently perform actions such as moving, fighting, or shooting, influenced by terrain modifiers and positional advantages. The primary objective is to provide a platform for evaluating the effectiveness and trade-offs of various stochastic and evolutionary algorithms under constraints characteristic of complex wargames, such as large action spaces and limited decision time. The simulation operates in a 1-vs-1 setting, leveraging a forward model that allows AI agents to predict outcomes and optimize decisions based on heuristic evaluation functions. Implemented AI strategies include baseline approaches (Uniform Random, Biased Random, Greedy), One-Step Look-Ahead variants (Simple, Multi-Action, Anytime), Monte Carlo Tree Search variants (Sampling, Progressive Widening), an Evolutionary Algorithm (EA), and Rolling Horizon Evolutionary Algorithms (RHEA). The methodology involves comparative analysis through iterative simulations across diverse scenarios with varying terrain, processing time, and unit compositions. Key performance metrics such as win rate, computational cost (decision time, evaluation count), and the quality of strategies generated under strict time constraints are measured. This allows for benchmarking the implemented AI techniques within a complex, dynamic, and stochastic environment. In conclusion, Warbringers.py serves as a flexible and extensible testbed for research into AI decision-making in strategy games. It offers a replicable environment to benchmark diverse algorithms, facilitating the study of their performance characteristics and suitability for complex adversarial systems with multi-action planning requirements.

Degree

thesis:*
Grantor dc:publisher
Universitat Oberta de Catalunya (UOC)
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Garcia Rodríguez, Xavier

Subjects

dc:subject × 5

Rights

dc:rights.accessrights
Statement dc:rights.accessrights
  • info:eu-repo/semantics/openAccess
  • CC BY-NC-ND
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/10609/153420

Chain of custody

source
Harvested from
Universitat Oberta de Catalunya
Base URL
openaccess.uoc.edu/server/oai/request
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Garcia Rodríguez, Xavier. Warbringers.py: a wargame for analyzing stochastic and evolutionary strategies in multi-action adversary scenarios. Universitat Oberta de Catalunya (UOC), 2025. https://hdl.handle.net/10609/153420