Part
Forward model
You might say: simulator, resolver model, rollout model, game model
A fast copy of the game's rules that maps a state and a joint order set to the next state without rendering or waiting for the live game.
- What it does
- Lets search inspect consequences, score outcomes and roll out many candidate orders before committing one to the real resolver.
- Ask
- Does this model produce the same state as the live rules for the orders that matter, and is it fast enough for the search budget?
- Trouble
- The simulator resolves an order differently from the live game, omits a conflict rule, or is too slow to explore enough joint plans.
What to look for
- A debug view shows a simulated state beside the live state
- Rollout counters or a timeline advance without drawing the full game
- A mismatch report names a resolver rule or order interaction
Sources
- Georgios N. Yannakakis and Julian Togelius, Artificial Intelligence and Games, Section 3.2.2.2, p. 107
In other words, it is a way of playing the game in simulation, so that consequences of multiple actions can be explored before actually taking some of those actions.
- Georgios N. Yannakakis and Julian Togelius, Artificial Intelligence and Games, Section 3.2.2.2, p. 107
Having a forward model of the game is necessary in order to be able to use any tree search-based approaches to playing a game.
- David Churchill, Abdallah Saffidine and Michael Buro, Fast Heuristic Search for RTS Game Combat Scenarios, Section 2, p. 2
As one search may simulate millions of moves, with each move having a duration of at least one simulation frame, it remains for us to construct an abstract model of STARCRAFT combat which is able to efficiently implement moves in a way that does not rely on simulating each in-game frame.
- Gábor Melis, Planet Wars Post-Mortem, Move Generation
The first thing was to implement simulating the future (see `FUTURE` class), which was trivial except I screwed battle resolution up and for the longest time it was holding results back.
Use it on your project
teardown-apply: hold "Forward model" (forward-model) from the teardown at https://teardownatlas.com/game-ai/ against my project
Paste it into a coding agent that has the teardown skills.
An AI agent wrote this map with the teardown skill. It can contain errors: check the sources before you rely on a part. About and legal