How boardzilla/boardzilla-core works
Main Components
A. Core Engine Layer
• Game Management System (src/game-manager.ts)
• Game Creation System (src/game-creator.ts)
• Flow Control System (src/flow/*)
• Action Management (src/action/*)
B. Board Management Layer
• Grid Systems (hex, square, fixed)
• Space Management
• Piece Management
• Element Collections
• Stack Management
C. Player Management Layer
• Player Collections
• Player State Management
D. UI Layer
• React Components
• Game UI Components
• Setup Interface
• Debug Tools
• Asset Management
E. Component Library
• Reusable Game Components (d6, flippable)
• Asset Management for Components
┌─────────────────────────────────────────────┐
• UI Layer │
• ┤
• Component Library │
• ┤
• Core Engine Layer │
• ┬───────────────┬────────────┤
• Board │ Player │ Flow │
• Management │ Management │ Control │
• ┴───────────────┴────────────┘
Key Relationships
• How the Core Engine coordinates with Board, Player, and Flow Control systems
• Event flow from user actions through the system
• Demonstrate state management and persistence paths
Technical Details
• TypeScript integration
• React component structure
• Build system (esbuild)
• Test framework integration
• Asset handling pipeline
Specific Implementation Notes
• Relationship between action selection and game flow
• How the grid systems (hex, square, fixed) interact
• Demonstrate the component lifecycle
• Debug tools integration