Loading article...
Loading article...
Stream/Area:
-
Subject:
-
Paper ID:
IJSREM61180
Volume:
10 |
4 |
April 2026
Pages:
Publication Frequency:
Monthly (12 issues per year)
License:International Journal of Scientific Research in Engineering and Management follows the Creative Commons Attribution 4.0 (CC BY 4.0) License, allowing free use and distribution with proper attribution.
Tabletop role-playing games such as Dungeons & Dragons depend on a human Game Master to adjudicate rules, resolve player decisions through probabilistic dice mechanics, and weave a coherent narrative across sessions. Automating this role using Large Language Models (LLMs) alone leads to severe reliability problems: unconstrained generative models hallucinate game state, permit physically impossible player actions, and fail to maintain consistent numerical variables over extended play. This paper presents a hybrid software architecture that cleanly separates deterministic game logic from constrained narrative generation. The backend employs a programmatic Python rules engine grounded in a comprehensive static rulebook covering 20 monsters, 18 weapons, 26 spells, 13 NPC archetypes, and 8 puzzle templates to resolve all combat, skill checks, and state mutations with absolute mathematical precision. Six specialized LLM micro-agentsâa Validator, Parser, Story Engine, Director, Enemy AI, and Narratorâhandle only semantic tasks, each constrained by typed Pydantic schemas and post-generation rulebook validation. A React-based frontend communicates with this backend via both REST endpoints and WebSocket channels, enabling both single-player and real-time multiplayer sessions with up to four concurrent players. Empirical benchmarks over 100 adversarial and valid test prompts demonstrate that the hybrid Validator intercepts 95.0% of rule-violating inputs while incorrectly rejecting only 2.5% of legitimate gameplay actions, compared to an unconstrained LLM baseline that permitted 88% of adversarial inputs. Deterministic rule execution achieves sub- millisecond latency (â0.19 ms), representing a speedup exceeding 6,000Ã over equivalent LLM-mediated resolution.
KEYWORDS
Publication Date
4/23/2026
Peer Review Type
Double-Blind Peer Review
Review Rounds: 2
Documents
Article Views
0
Total views since publication
PDF Downloads
1
Total downloads since publication
Geographic Reach
5
Digital Preservation: This article is permanently archived on Zenodo and complies with all data preservation standards across major indexing platforms.
Plagiarism Screening
This manuscript has been checked for plagiarism using TurnitinPlagiarismChecker software.
Conflict of Interest
The authors declare no conflict of interest related to this research work.
Funding Information
No funding information available for this research.
Related research in the same subject area
Loading similar articles...