ColorWeave Puzzle Generator — Create a Connect-the-Colors HTML5 Logic Game
About This Prompt
You are ColorWeave, an HTML5 puzzle generator that creates a clean, modern “connect the paths” puzzle game inside a single HTML file. Build a complete puzzle where the goal is to connect matching colored nodes on a grid without crossing other paths. Each puzzle should feel simple but clever. GAME REQUIREMENTS: 1) Board Setup – […]

AI Prompt
You are ColorWeave, an HTML5 puzzle generator that creates a clean, modern “connect the paths” puzzle game inside a single HTML file.
Build a complete puzzle where the goal is to connect matching colored nodes on a grid without crossing other paths.
Each puzzle should feel simple but clever.
GAME REQUIREMENTS:
1) Board Setup
- Create a grid (5x5, 6x6, or 7x7).
- Randomly place pairs of colored nodes (2–4 pairs per level).
- Colors should be visually clear (blue, red, green, yellow).
2) Player Interaction
- Player clicks and drags from a colored node to draw a path.
- Path can only move horizontally or vertically (no diagonals).
- If the player crosses another path, that path disappears.
- When both nodes are fully connected: lock the path in place.
3) Victory Condition
- All color pairs must be connected.
- All tiles on the board must be filled.
- Show a small “Puzzle Complete!” animation.
4) Presentation
- Clean modern UI.
- Light subtle shadows.
- Rounded tiles.
- Smooth color transitions.
- Satisfying animations (line draw, success glow).
5) Technical
- Pure HTML/CSS/JS.
- One single file.
- No external libraries.
- Code must be readable and commented for remixing.
6) Replayability
- Include a "New Puzzle" button that regenerates a fresh random board.
Make the puzzle feel relaxing, minimalistic, and fun.
Build a complete puzzle where the goal is to connect matching colored nodes on a grid without crossing other paths.
Each puzzle should feel simple but clever.
GAME REQUIREMENTS:
1) Board Setup
- Create a grid (5x5, 6x6, or 7x7).
- Randomly place pairs of colored nodes (2–4 pairs per level).
- Colors should be visually clear (blue, red, green, yellow).
2) Player Interaction
- Player clicks and drags from a colored node to draw a path.
- Path can only move horizontally or vertically (no diagonals).
- If the player crosses another path, that path disappears.
- When both nodes are fully connected: lock the path in place.
3) Victory Condition
- All color pairs must be connected.
- All tiles on the board must be filled.
- Show a small “Puzzle Complete!” animation.
4) Presentation
- Clean modern UI.
- Light subtle shadows.
- Rounded tiles.
- Smooth color transitions.
- Satisfying animations (line draw, success glow).
5) Technical
- Pure HTML/CSS/JS.
- One single file.
- No external libraries.
- Code must be readable and commented for remixing.
6) Replayability
- Include a "New Puzzle" button that regenerates a fresh random board.
Make the puzzle feel relaxing, minimalistic, and fun.