Territory Game
This scripted CLI example shows `Behavioral\Behaves`, behavioral state transitions, and an `Arr`-backed narration log in a small turn-driven game.
Run It
composer install
php examples/game/gangs.php script
Expected Output
Scripted DevElation Gangs run.
Territory:
You : 1
Rival : 1
> attack
You make a move on rival territory.
The move fails and you lose ground.
Rival is waiting for a move.
You have lost all territory. Game over.
Recap of NPC actions:
Actions logged: 1
- Rival is waiting for a move.
Run without `script` for the interactive terminal game.