How 2026oss-team-project/vite works
Memory Puzzle is a browser-based matching game: a player flips tiles, matches pairs, and completes the board to win. The React entry point mounts the app, which owns game state and coordinates tile input, move counts, reset/new-game actions, and win detection. New games are built from a logo catalogue using random selection; the board renders interactive tiles, while header and statistics components expose controls and status. Source excerpts show the main wiring and game logic; styling and some helper implementations were not inspected, so the graph focuses on evidenced runtime relationships.
Main entry points: App.jsx Game state · TileGrid.jsx Tile grid · GameStats.jsx Win status · tile-factory.js Game factory
Components 14
Game orchestration
- React entry
src/index.jsx - Game state
src/App.jsx - Game states
src/game-states.js
Gameplay interface
- Tile grid
src/TileGrid.jsx - Interactive tile
src/Tile.jsx - Win status
src/GameStats.jsx - Play again
src/RestartButton.jsx
Game setup
- Game factory
src/tile-factory.js - Logo catalogue
src/logos.js - Random selection
src/random-subarray.js
App chrome
- Game controls
src/AppHeader.jsx - Footer
src/Footer.jsx - GitHub icon
src/GitHubIcon.jsx
Other components
- Player
Connections 17
- Player → React entry: opens game
- React entry → Game state: mounts
src/index.jsx - Game state → Game factory: creates game
src/App.jsx - Game factory → Logo catalogue: selects from
src/tile-factory.js - Game factory → Random selection: randomizes
src/tile-factory.js - Game state → Game states: sets state
src/App.jsx - Game state → Game controls: renders controls
src/App.jsx - Game state → Win status: renders status
src/App.jsx - Game state → Tile grid: renders board
src/App.jsx - Tile grid → Interactive tile: renders tiles
src/TileGrid.jsx - Interactive tile → Tile grid: reports flips
src/Tile.jsx - Tile grid → Game state: forwards input
src/TileGrid.jsx - Game controls → Game state: invokes controls
src/App.jsx - Win status → Game states: checks status
src/GameStats.jsx - Win status → Play again: renders action
src/GameStats.jsx - Footer → GitHub icon: renders icon
src/Footer.jsx - Game state → Footer: renders footer
src/App.jsx