How ciubotaru/feud works
Feud is a local turn-based medieval strategy game with an editor, hot-seat play, and a weak computer opponent. Players build or load a world, then manage its map, characters, pieces, regions, and diplomacy while playing. The graph separates the documented entry modes and editor/game interaction from the shared game rules and state, plus persistence and world-generation capabilities. Some subsystem links rely on README descriptions or source-index references; unsampled implementation details are not inferred.
Main entry points: world.c Shared world state · editor.c World editor · ai.c AI game · window.c Game interface
Components 20
Game entry modes
- World editor
editor.c - Hot-seat game
single.c - AI game
ai.c - Setup commands
server.c - Game interface
window.c
World creation and editing
- Grid and regions
map.c - Map generation
mapgen.c - World wizard
new.c
Game state and rules
- Shared world state
world.c - Characters and succession
character.c - Military pieces
piece.c - Diplomacy and vassals
diplomacy.c - Game rules
logic.c - Dice mechanics
dice.c - Game time
time.c
Persistence and presentation
- Save and load
file.c - Input handling
pipe.c - Game history
feud.c
Other components
- Local players
- Computer opponent
Connections 26
- Local players → World editor: edit world
README - Local players → Hot-seat game: play locally
README - Computer opponent → AI game: play against
README - Local players → AI game: choose character
README - World editor → Game interface: use editor screens
README - Hot-seat game → Game interface: play through
- AI game → Grid and regions: create grid
ai.c - AI game → Shared world state: validate setup
ai.c - World editor → Shared world state: edit shared state
- Setup commands → Shared world state: manage game setup
- Shared world state → Grid and regions: holds grid and regions
- Shared world state → Characters and succession: holds character list
- Shared world state → Military pieces: holds piece list
- Shared world state → Diplomacy and vassals: holds diplomacy list
- Grid and regions → Diplomacy and vassals: check relations
map.c - Characters and succession → Diplomacy and vassals: remove relations
character.c - World editor → Map generation: generate maps
- World editor → World wizard: create simple world
README - Shared world state → Save and load: serialize world
file.c - Save and load → Shared world state: restore world
file.c - Game interface → Characters and succession: manage characters
window.c - Game interface → Diplomacy and vassals: manage diplomacy
window.c - Game rules → Dice mechanics: use dice mechanics
- Shared world state → Game time: stores current time
- Input handling → Setup commands: feed commands
- Shared world state → Game history: record events