How jaanos-zsoldos/megye-tanulas works
Megye tanuló játék is a dependency-free browser game for learning Hungary’s counties and county seats through map-based exercises. The learner chooses one of five modes, places or selects an answer on the map, and receives immediate or batch evaluation, scoring, visual feedback, and a completion dialog. The graph separates the game’s documented domain stages from its data, geometry, and display-support layers. Several links are documented in the README; source excerpts show the data-loading, placement, and reset integrations, but not every app.js handler.
Main entry points: app.js Map rendering · index.html Game page · reset.js Map reset · data.js County data loader
Components 17
Game flow
- Mode selection
app.js - Game state
app.js - Map rendering
app.js - Answer evaluation
app.js - Scoring and completion
app.js - Answer feedback
app.js
Map and data
- County data loader
data.js - County and seat data
counties.json - Placement geometry
placement.js
Display support
- Map reset
reset.js - Map appearance
layout.js - Viewport fitting
viewport.js - Map zoom
zoom.js
Static interface
- Game page
index.html - Base styles
styles.css - Responsive styles
responsive.css
Other components
- Learner
Connections 21
- Learner → Game page: uses
README.md - Game page → Mode selection: selects mode
README.md - Mode selection → Game state: sets mode
README.md - Mode selection → Map rendering: starts round
README.md - Map rendering → County data loader: uses loaded data
app.js - County data loader → County and seat data: fetches and validates
data.js - Learner → Map rendering: interacts with map
README.md - Map rendering → Placement geometry: resolves positions
app.js - Map rendering → Answer evaluation: handles answers
README.md - Answer evaluation → Game state: records placements
README.md - Answer evaluation → Scoring and completion: evaluates answers
README.md - Scoring and completion → Answer feedback: shows result
README.md - Answer feedback → Learner: plays and displays feedback
README.md - Scoring and completion → Game page: opens completion dialog
README.md - Mode selection → Map reset: resets on restart
README.md - Map reset → Map zoom: resets zoom
reset.js - Map reset → Viewport fitting: refits viewport
reset.js - Map rendering → Map appearance: restores appearance
- Game page → Base styles: styled by
README.md - Game page → Responsive styles: adapted by
README.md - Learner → Map zoom: zooms map
README.md