How evelimlima/quarto-pedagogico works
QUARTO Pedagógico Amazônico is a browser-based, two-player game that uses Amazonian cultural imagery to teach binary patterns and graph-like winning lines. Players take turns choosing a piece for the other player, placing it on a 4×4 board, and learning whether a shared attribute completes a winning line; the game also tracks wins and draws. The graph follows the documented page and sampled JavaScript modules. The tutorial page is documented, but its implementation was not sampled, so its internal links are omitted.
Main entry points: main.js Game controller · regras.js Turn rules · pecas.js Piece attributes · tabuleiro.js Board and reserve
Components 11
Game interface
- Game page
index.html - Game controller
js/main.js - Board and reserve
js/tela/tabuleiro.js - Piece and bits
js/tela/bits.js - Piece SVG
js/tela/desenho.js - Turn and results
js/tela/painel.js
Game rules
- Turn rules
js/logica/regras.js - Piece attributes
js/logica/pecas.js - Winning lines
js/logica/vitoria.js
Learning content
- How-to-play tutorial
tutorial.html
Other components
- Players
Connections 15
- Players → Game page: play
- Players → How-to-play tutorial: learn from
- Game page → Game controller: loads
- Game controller → Turn rules: updates game
- Game controller → Board and reserve: renders board
- Game controller → Piece and bits: renders hand
- Game controller → Turn and results: renders status
- Turn rules → Piece attributes: initializes pieces
- Turn rules → Winning lines: checks lines
- Board and reserve → Piece attributes: reads attributes
- Board and reserve → Piece SVG: renders pieces
- Piece and bits → Piece attributes: reads bits
- Piece and bits → Piece SVG: renders piece
- Turn and results → Piece attributes: reads legend
- Turn and results → Turn rules: reads player names