How dinhocss/carcasonne works
This is an early Carcassonne board prototype: it creates a fixed-size board, places sample tiles from a tile catalog, and displays the board with a static player sidebar and controls. The runtime is split between a vanilla-DOM entry point and a separate board-rendering helper; the supplied excerpts do not show the helper being called. App.tsx is still the default React/Vite starter screen. The catalog import in main.ts differs in filename casing from the tree; unsampled wiring and gameplay features cannot be established.
Main entry points: main.ts Game Entry · Tabuleiro.ts Board State · Render.ts Board Renderer · tile.ts Tile Types
Components 8
Runtime UI
- Game Entry
src/main.ts - Board Display
src/main.ts - Board Renderer
src/view/Render.ts - Starter Screen
src/App.tsx
Board Domain
- Board State
src/models/Tabuleiro.ts - Tile Types
src/types/tile.ts
Tile Catalog
- Tile Catalog
src/data/tilesData.ts
Other components
- Browser
Connections 6
- Browser → Game Entry: loads
- Game Entry → Board State: creates and places
src/main.ts - Game Entry → Tile Catalog: reads sample tiles
src/main.ts - Game Entry → Board Display: builds markup
src/main.ts - Board Renderer → Board State: reads grid
src/view/Render.ts - Board State → Tile Types: uses tile shape
src/models/Tabuleiro.ts