How michaelstergiaris/yu-gi-oh_calculator works
This is a small two-player duel life-point tracker. Its JavaScript maintains each duelist’s points and the current numeric input, applies additions, subtractions, or halving, resets both players, updates displayed values, and alerts when a player reaches zero. The source excerpt shows DOM access and browser alerts, but not how the page wires user actions to these functions or how its HTML and CSS are structured.
Main entry points: script.js Life-point logic · index.html Page UI
Components 4
Other components
- Duelist
- Page UI
index.html - Life-point logic
script.js - Browser alerts
Connections 3
- Duelist → Life-point logic: uses controls
- Life-point logic → Page UI: updates displays
script.js - Life-point logic → Browser alerts: shows loss alert
script.js