How kapustakstepan-dev/project-casino works
Project-Casino is an educational, browser-based casino simulator with a lobby, roulette, blackjack and virtual sports pages, fictional credits, age/legal gates, registration, and multilingual UI. The intended user journey is to pass the age and legal checks, register before entering a game, then play with simulated credits. The sampled code supports the access flow and wallet persistence, but the game-page implementations and HTML script wiring were not sampled, so links from games to wallet operations and page-to-script relationships are omitted.
Main entry points: auth.js Access flow · wallet.js Wallet logic · i18n.js Language manager · index.html Casino lobby
Components 18
Casino experience
- Casino lobby
index.html - Lobby animations
background.js
Access and compliance
- Age check
age.html - Underage notice
underage.html - Responsible gaming
advertense.html - Legal terms
legal.html - Registration
login.html - Access flow
logic/auth.js
Game pages
- Roulette
model/roulette.html - Blackjack
model/blackjack.html - Virtual sports
model/sports.html
Fictional credits
- Wallet logic
logic/wallet.js - Browser credit state
Localization
- Language manager
languages/i18n.js - Language preference
- Alternate translations
languages/languages.js
Other components
- Visitor
- Anime.js
Connections 23
- Visitor → Casino lobby: opens
- Visitor → Age check: confirms age
- Visitor → Legal terms: accepts terms
- Visitor → Registration: registers
- Visitor → Roulette: opens game
- Visitor → Blackjack: opens game
- Visitor → Virtual sports: opens game
- Access flow → Browser credit state: reads and writes
- Access flow → Age check: redirects
- Access flow → Underage notice: redirects
- Access flow → Legal terms: redirects
- Access flow → Registration: redirects
- Access flow → Casino lobby: redirects
- Access flow → Roulette: redirects
- Access flow → Blackjack: redirects
- Access flow → Virtual sports: redirects
- Wallet logic → Browser credit state: reads and writes
- Language manager → Language preference: reads and writes
- Alternate translations → Language preference: reads and writes
- Language manager → Anime.js: animates changes
- Wallet logic → Anime.js: animates balance
- Lobby animations → Anime.js: animates lobby
- Visitor → Responsible gaming: opens