How panditbhavik/skills-introduction-to-git works
This repository implements a browser-based coding-themed falling-block puzzle. A player uses keyboard controls to move, rotate, drop, and pause pieces; the game updates its board, checks for a target error pattern, awards points, and renders the result. The main runtime is concentrated in src/index.js, with pattern definitions in src/patterns.js. The HTML and CSS are present but were not sampled, so their detailed wiring is not inferred.
Main entry points: index.js Pattern Matching · patterns.js Error Patterns · index.html Game Page
Components 12
Game Play
- Keyboard Controls
src/index.js - Game Loop
src/index.js - Piece Mechanics
src/index.js - Collision Check
src/index.js - Board State
src/index.js
Pattern Scoring
- Pattern Matching
src/index.js - Error Patterns
src/patterns.js - Score Updates
src/index.js
Browser Display
- Canvas Rendering
src/index.js - Game Page
src/index.html - Game Status UI
src/index.js
Other components
- Player
Connections 15
- Player → Keyboard Controls: presses keys
src/index.js - Keyboard Controls → Piece Mechanics: moves pieces
src/index.js - Keyboard Controls → Game Loop: toggles pause
src/index.js - Game Loop → Piece Mechanics: drops pieces
src/index.js - Piece Mechanics → Collision Check: checks movement
src/index.js - Piece Mechanics → Board State: locks pieces
src/index.js - Piece Mechanics → Pattern Matching: checks on lock
src/index.js - Pattern Matching → Error Patterns: uses patterns
- Pattern Matching → Board State: reads and clears
src/index.js - Pattern Matching → Score Updates: awards points
src/index.js - Pattern Matching → Game Loop: sets next target
src/index.js - Game Loop → Canvas Rendering: draws frame
src/index.js - Canvas Rendering → Game Page: draws on canvas
src/index.js - Score Updates → Game Status UI: updates score
src/index.js - Game Loop → Game Status UI: updates game state
src/index.js