How leyllio/blackjack works
Blackjack is a single-player browser game with virtual chips and no server-side account or payment flow. The user enters a stake, starts a hand, makes available play decisions, and sees the hand result and updated balance. The implementation is a JavaScript monolith; the nodes below separate its documented responsibilities rather than implying separate modules. The README documents the main rules and capabilities, while the source excerpt confirms selected DOM, deck, rendering, and event-handler behavior; other internal links are based on the README’s architecture description.
Main entry points: bjtable.js Round orchestration · index.html Game page · style.css Responsive themes
Components 15
Browser interface
- Game page
index.html - Responsive themes
css/style.css - DOM rendering
script/bjtable.js - Theme toggle
script/bjtable.js
Blackjack gameplay
- Round orchestration
script/bjtable.js - Deck and cards
script/bjtable.js - Hand scoring
script/bjtable.js - Turn state
script/bjtable.js - Player actions
script/bjtable.js - Dealer play
script/bjtable.js
Virtual chips
- Stake handling
script/bjtable.js - Payout settlement
script/bjtable.js - Chip balance
script/bjtable.js
Other components
- Player
- Google Fonts
Connections 19
- Player → Game page: uses
README.md - Game page → Round orchestration: starts game
README.md - Game page → Responsive themes: styled by
README.md - Round orchestration → Deck and cards: deals cards
script/bjtable.js - Round orchestration → Stake handling: validates stake
README.md - Round orchestration → DOM rendering: updates display
script/bjtable.js - Round orchestration → Turn state: sets state
README.md - Player actions → Turn state: advances turn
README.md - Player actions → Deck and cards: draws cards
README.md - Player actions → Dealer play: ends player turn
README.md - Dealer play → Deck and cards: draws cards
README.md - Dealer play → Hand scoring: checks total
README.md - Round orchestration → Hand scoring: checks hands
README.md - Round orchestration → Payout settlement: settles round
README.md - Payout settlement → Chip balance: updates balance
README.md - Stake handling → Chip balance: deducts stake
README.md - DOM rendering → Game page: renders into
script/bjtable.js - Theme toggle → Game page: updates theme
script/bjtable.js - Responsive themes → Google Fonts: loads fonts
README.md