How chrisscastaneda/hop-dot works
Hop Dot is a browser-based triangular peg-jumping game. In the main Vue workflow, a player selects a dot, chooses an empty destination, and the game updates the board and displays move animation or an end-state message. The game logic and board presentation are implemented together in src/HopDot.vue, with individual dots rendered by src/components/DotComponent.vue. The repository also includes a small static-server path and a separate plain Vue app under public/; their relationship to the main Vue app is not established. Unsampled template and runtime details are omitted.
Main entry points: HopDot.vue Board and state · main.js Vue entry · server.js Static server · DotComponent.vue Dot display
Components 8
Game
- Vue entry
src/main.js - Board and state
src/HopDot.vue - Move rules
src/HopDot.vue - Move animation
src/HopDot.vue - Dot display
src/components/DotComponent.vue
Static serving
- Static server
server.js - Standalone dot app
public/app.js
Other components
- Player
Connections 8
- Player → Vue entry: opens game
README.md - Vue entry → Board and state: mounts
src/main.js - Board and state → Dot display: renders
src/HopDot.vue - Player → Board and state: selects dots
src/HopDot.vue - Board and state → Move rules: attempts move
src/HopDot.vue - Move rules → Move animation: sets animation
src/HopDot.vue - Player → Static server: requests files
server.js - Static server → Standalone dot app: serves files
server.js