Analysis of methods for simulating character encounters in a game with RPG elements

Main Article Content

DOI

Michał Zdybel

s95620@pollub.edu.pl

https://orcid.org/0009-0002-2536-9229
Jakub Smołka

jakub.smolka@pollub.pl

https://orcid.org/0000-0002-8350-2537

Abstract


This paper investigates algorithms that predict the outcome of a duel in a game with RPG elements and determine the losses incurred. The aim is to evaluate the effectiveness of the following approaches: based on Lanchester's laws and stochastic, using the Monte Carlo method. Verification was carried out through manual gameplay and comparison of the obtained results with those predicted by the algorithms, measuring their accuracy with the MAPE. The analysis showed greater efficiency and stability of the Monte Carlo algorithm, while the Lanchester model turned out to be less reliable in one of the cases.


Keywords:

algorithms, Lanchester's laws, Monte Carlo, games with RPG elements, quick combat

References

Article Details

Zdybel, M., & Smołka, J. (2025). Analysis of methods for simulating character encounters in a game with RPG elements. Journal of Computer Sciences Institute, 37, 500–507. https://doi.org/10.35784/jcsi.8353