How charlesokeke1/economic-simulation works
This is a JavaFX Nigerian economy simulation game. The player selects a state and policy, then the monthly simulation applies federal accounting and state policies, triggers events, updates rankings, and periodically runs elections; the interface presents the resulting economy through dashboards and reports. The graph emphasizes that orchestration and the major economic, event, AI, and election branches. Several links are based on the sampled SimulationEngine and UI excerpts; unsampled subsystems are included only where their role is clear from the tree.
Main entry points: SimulationEngine.java Monthly simulation · StateEconomy.java State economy · HomeScreen.java Game dashboard · FederalAccountingEngine.java Federal accounting
Components 17
Player interface
- Application
src/main/java/frontend/gui/AppMain.java - Game dashboard
src/main/java/frontend/gui/HomeScreen.java - Economic reports
src/main/java/frontend/ui/PrintReports.java
Simulation workflow
- Game initializer
src/main/java/frontend/ui/Initializer.java - Monthly simulation
src/main/java/backend/engine/SimulationEngine.java
Economic model
- State economy
src/main/java/backend/economies/StateEconomy.java - Federal economy
src/main/java/backend/economies/FederalEconomy.java - Starting economies
src/main/java/backend/data/EconomyInitializer.java - Federal accounting
src/main/java/backend/engine/FederalAccountingEngine.java - Policy application
src/main/java/backend/engine/PolicyEngine.java
Events and AI
- Event triggers
src/main/java/backend/events/EventTrigger.java - AI policy choice
src/main/java/backend/engine/AiPolicyMaker.java - Policy checks
src/main/java/backend/AI/PolicyChecks.java
Results
- State rankings
src/main/java/backend/engine/RankingEngine.java - Elections
src/main/java/backend/election/ElectionEngine.java - Month telemetry
src/main/java/backend/analytics/Telemetry.java
Other components
- Player
Connections 20
- Player → Game dashboard: chooses policy
- Application → Game dashboard: opens interface
- Game initializer → Starting economies: creates economies
- Monthly simulation → Federal accounting: runs accounting
- Monthly simulation → Policy application: applies policies
- Monthly simulation → Event triggers: triggers events
- Monthly simulation → State rankings: calculates ranks
- Monthly simulation → Elections: runs periodically
- Monthly simulation → Month telemetry: logs month
- Monthly simulation → AI policy choice: chooses AI policy
- Monthly simulation → Policy checks: checks AI policy
- Game dashboard → Monthly simulation: advances simulation
- Game dashboard → State economy: reads state
- Economic reports → State economy: reads state
- Economic reports → Federal economy: reads federation
- Federal accounting → State economy: updates allocations
- Federal accounting → Federal economy: updates totals
- Policy application → State economy: updates state
- State rankings → State economy: updates positions
- Elections → State economy: updates governments