How suhuseoid/game-arcade-bola-tangkas works
This is a browser-only, offline Bola Tangkas card game. The main workflow is to choose a deck mode and bet, deal and optionally raise, reveal the final cards, evaluate the best five-card hand, then collect winnings or risk them in Double. The UI coordinates the game engine, audio, visual effects, and locally stored credits. The README documents additional presentation and gameplay capabilities; source excerpts do not show all UI handlers or HTML wiring, so uncertain connections are omitted.
Main entry points: ui.js Game UI · engine.js Round state · index.html Game page · sound.js Chiptune audio
Components 12
Game logic
- Round state
js/engine.js - Deck and shuffle
js/engine.js - Hand evaluation
js/engine.js - Double guesses
js/engine.js
Presentation
- Visual effects
js/effects.js - Chiptune audio
js/sound.js - Retro styling
style.css
Local state
- Credit storage
js/ui.js
Other components
- Player
- Browser audio
Connections 14
- Player → Game page: opens
README.md - Game page → Game UI: starts
- Player → Game UI: plays
README.md - Game UI → Round state: creates game
js/ui.js - Game UI → Round state: deals and raises
js/ui.js - Game UI → Hand evaluation: checks hand
js/ui.js - Round state → Deck and shuffle: shuffles and draws
js/engine.js - Round state → Hand evaluation: evaluates result
js/engine.js - Game UI → Double guesses: submits guess
js/ui.js - Game UI → Credit storage: saves credits
js/ui.js - Game UI → Visual effects: triggers effects
js/ui.js - Game UI → Chiptune audio: plays cues
js/ui.js - Chiptune audio → Browser audio: synthesizes audio
js/sound.js - Game page → Retro styling: uses styling