MACSWC is a multi-agent geopolitical simulation project focused on modeling conflict, diplomacy, and strategic decision-making in a Balkan war scenario. The system combines world-state tracking, AI-driven country agents, and orchestration logic to simulate how nations react to events, alliances, threats, and requests over time.
The project is designed to:
- simulate countries as autonomous agents
- track diplomatic and military state over time
- evaluate actions with strategic reasoning
- support API-based and local-model execution
- provide a visual GUI and terminal-based run modes
WorldEngine/- simulation engine, world state, orchestration, and game logicagents_des/- country, board, and secretary agent modelsGUI/- Pygame-based visualization interfaceengine_tune/- run scripts and environment configuration templatesinitial_context_*.json- scenario setup data for simulations
- Multi-country decision simulation
- Action registry and validation
- Dynamic world-state updates
- AI-powered country actions using LLM backends
- API and Ollama/local support
- Scenario-driven execution with JSON input files
- GUI and console output modes
- Create and activate a Python environment.
- Install dependencies from the project requirements if available.
- Configure your
.envfile using one of the provided templates inengine_tune/. - Run the project using the matching script in
engine_tune/.
# API with GUI
.\engine_tune\run_api_gui_long.ps1
# API without GUI
.\engine_tune\run_api_long.ps1
# Local Ollama mode
.\engine_tune\run_local_long.ps1- Do not commit real API keys.
- Use
.envtemplate files for configuration. - GUI mode is intended for API-based runs and is automatically disabled for local LLM setups.
Use the following commit message for the initial project upload:
git add .
git commit -m "Whole project commit"This project is for academic and simulation-development use unless otherwise specified by the repository owner.