How hmbenicio/slotsenginegame works
SlotsEngineGame is a client-side React Native slot-machine app: users enter through login or account creation, then play in the casino, where local state handles deposits, wagers, spins, payouts, withdrawals, sound, and settings; the bottom bar also opens the profile. There is no backend or real-money transaction processing. The graph follows documented routing and source-index references; account-address lookup is included as a documented ViaCEP integration, but its implementation was not sampled.
Main entry points: CasinoPage.js Casino screen · main.js Shared styles · App.js App router · useSlotMachine.js Slot machine state
Components 24
App navigation
- App router
SlotsEngineGame/frontend/App.js - Login
SlotsEngineGame/frontend/src/pages/LoginPage.js - Account creation
SlotsEngineGame/frontend/src/pages/CreateAccountPage.js - Profile
SlotsEngineGame/frontend/src/pages/ProfilePage.js
Casino experience
- Casino screen
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Deposit controls
SlotsEngineGame/frontend/src/components/DepositSection.js - Bet selector
SlotsEngineGame/frontend/src/components/BetSelector.js - Slot board
SlotsEngineGame/frontend/src/components/SlotBoard.js - Play statistics
SlotsEngineGame/frontend/src/components/StatsRow.js - Status banner
SlotsEngineGame/frontend/src/components/MessageBanner.js - Withdrawal modal
SlotsEngineGame/frontend/src/components/WithdrawModal.js - Settings modal
SlotsEngineGame/frontend/src/components/SettingsModal.js - Bottom navigation
SlotsEngineGame/frontend/src/components/BottomBar.js - Casino header
SlotsEngineGame/frontend/src/components/HeaderSection.js
Game and state engine
- Slot machine state
SlotsEngineGame/frontend/src/hooks/useSlotMachine.js - Spin and payouts
SlotsEngineGame/frontend/src/game/slotLogic.js - Grid conversion
SlotsEngineGame/frontend/src/utils/grid.js - Sound playback
SlotsEngineGame/frontend/src/hooks/useSounds.js
Shared presentation
- Game settings
SlotsEngineGame/frontend/src/constants/game.js - Theme palette
SlotsEngineGame/frontend/src/constants/theme.js - BRL formatting
SlotsEngineGame/frontend/src/utils/format.js - Shared styles
SlotsEngineGame/frontend/src/styles/main.js
Other components
- Player
- ViaCEP
Connections 42
- Player → App router: opens app
README.md - App router → Login: starts at
SlotsEngineGame/frontend/App.js - App router → Account creation: routes to
SlotsEngineGame/frontend/App.js - App router → Casino screen: routes to
SlotsEngineGame/frontend/App.js - App router → Profile: routes to
SlotsEngineGame/frontend/App.js - Login → App router: submits login
README.md - Account creation → App router: submits or cancels
SlotsEngineGame/frontend/App.js - Account creation → ViaCEP: looks up address
README.md - Casino screen → Profile: opens profile
README.md - Casino screen → Slot machine state: uses game state
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Casino screen → Deposit controls: renders
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Casino screen → Bet selector: renders
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Casino screen → Slot board: renders
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Casino screen → Play statistics: renders
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Casino screen → Status banner: renders
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Casino screen → Withdrawal modal: renders
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Casino screen → Settings modal: renders
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Casino screen → Bottom navigation: renders
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Casino screen → Casino header: renders
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Slot machine state → Spin and payouts: runs rounds
SlotsEngineGame/frontend/src/hooks/useSlotMachine.js - Slot machine state → Grid conversion: formats results
SlotsEngineGame/frontend/src/hooks/useSlotMachine.js - Slot machine state → Sound playback: plays cues
SlotsEngineGame/frontend/src/hooks/useSlotMachine.js - Slot machine state → Game settings: reads settings
SlotsEngineGame/frontend/src/hooks/useSlotMachine.js - Slot machine state → BRL formatting: formats amounts
SlotsEngineGame/frontend/src/hooks/useSlotMachine.js - Casino screen → Theme palette: selects palette
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Casino screen → Game settings: reads game settings
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Casino screen → BRL formatting: formats display
SlotsEngineGame/frontend/src/pages/CasinoPage.js - Withdrawal modal → Theme palette: reads colors
SlotsEngineGame/frontend/src/components/WithdrawModal.js - Bet selector → BRL formatting: formats bet
SlotsEngineGame/frontend/src/components/BetSelector.js - Play statistics → BRL formatting: formats totals
SlotsEngineGame/frontend/src/components/StatsRow.js - Login → Theme palette: uses palette
SlotsEngineGame/frontend/src/pages/LoginPage.js - Account creation → Theme palette: uses palette
SlotsEngineGame/frontend/src/pages/CreateAccountPage.js - Profile → Theme palette: uses palette
SlotsEngineGame/frontend/src/pages/ProfilePage.js - Deposit controls → Shared styles: uses styles
SlotsEngineGame/frontend/src/components/DepositSection.js - Bet selector → Shared styles: uses styles
SlotsEngineGame/frontend/src/components/BetSelector.js - Slot board → Shared styles: uses styles
SlotsEngineGame/frontend/src/components/SlotBoard.js - Play statistics → Shared styles: uses styles
SlotsEngineGame/frontend/src/components/StatsRow.js - Status banner → Shared styles: uses styles
SlotsEngineGame/frontend/src/components/MessageBanner.js - Withdrawal modal → Shared styles: uses styles
SlotsEngineGame/frontend/src/components/WithdrawModal.js - Settings modal → Shared styles: uses styles
SlotsEngineGame/frontend/src/components/SettingsModal.js - Bottom navigation → Shared styles: uses styles
SlotsEngineGame/frontend/src/components/BottomBar.js - Casino header → Shared styles: uses styles
SlotsEngineGame/frontend/src/components/HeaderSection.js