How webersonrodrigues/jogo-da-velha works
This is a small browser-based tic-tac-toe game. Players enter names, start a match, take turns marking the board, and receive win or draw feedback; wins update the score and the board resets. The sampled JavaScript shows the event handling, state, win checks, and UI updates. The HTML and CSS roles are based on the README and file tree; their source was not sampled.
Main entry points: velha.html Game page · velha.js Turn controller · velha.css Game styles
Components 5
Game interface
- Game page
velha.html
Game runtime
- Turn controller
js/velha.js - State and rules
js/velha.js
Presentation
- Game styles
css/velha.css
Other components
- Players
Connections 5
- Players → Game page: use interface
- Game page → Turn controller: dispatch clicks
- Turn controller → Game page: read and update
- Turn controller → State and rules: check and update
- Game styles → Game page: style interface