How faisal-666/odin-memory-card works
This is a React memory-card game: it fetches a set of Patrick Star stickers, displays them as clickable cards, and scores players for selecting each card only once. A repeated selection resets the round; selecting every image opens a win dialog. The graph includes the app’s state hooks and response transformation as internal layers. Source excerpts show the main calls and callback wiring; the README is empty, so no additional documented capabilities are available.
Main entry points: Game.jsx Game round · App.jsx App coordinator · card.jsx Image card · dialog.jsx Win dialog
Components 12
App shell
- React entry
src/index.jsx - App coordinator
src/App.jsx
Game UI
- Game round
src/components/game/Game.jsx - Image card
src/components/card/card.jsx - Win dialog
src/components/dialog/dialog.jsx
Game state
- Image state
src/hooks/useListImages.js - Score state
src/hooks/useScore.js - Loading state
src/hooks/useLoading.js
Image integration
- Response transformer
src/utils/responseTransformer.js - Giphy service
src/service/giphyService.js
Other components
- Player
- Giphy API
Connections 18
- React entry → App coordinator: renders
src/index.jsx - App coordinator → Game round: renders
src/App.jsx - App coordinator → Win dialog: renders
src/App.jsx - App coordinator → Image state: creates
src/App.jsx - App coordinator → Score state: creates
src/App.jsx - App coordinator → Loading state: creates
src/App.jsx - Game round → Giphy service: fetches images
src/components/game/Game.jsx - Giphy service → Giphy API: requests stickers
src/service/giphyService.js - Game round → Response transformer: transforms response
src/components/game/Game.jsx - Game round → Image state: updates and shuffles
src/components/game/Game.jsx - Game round → Score state: updates score
src/components/game/Game.jsx - Game round → Loading state: clears loading
src/components/game/Game.jsx - Game round → Image card: renders
src/components/game/Game.jsx - Image card → Game round: reports clicks
src/components/card/card.jsx - Player → Image card: selects
src/components/card/card.jsx - Game round → App coordinator: requests reset
src/components/game/Game.jsx - App coordinator → Win dialog: passes win state
src/App.jsx - Win dialog → App coordinator: invokes reset
src/components/dialog/dialog.jsx