Vibe Coding JavaScript Games

A chapter-aligned game hub for the book. Each project teaches a new JavaScript concept while reinforcing the Vibe Coding workflow: visualize the game, identify the systems, build with AI assistance, then study, refine, and extend the code.

Chapter 01 — Slot Machine

Randomness, DOM updates, betting logic, jackpot systems, and localStorage persistence.

Chapter 02 — Blackjack Command

Deck modeling, hand scoring, state transitions, dealer rules, and conditional game flow.

Chapter 03 — Roulette Frontier

Probability, betting systems, payouts, and syncing a roulette wheel result with the game logic.

Chapter 04 — Poker Showdown

Array sorting, hand ranking, pattern detection, and draw-phase game flow.

Chapter 05 — Circuit Null

Grid systems, tile rotation, connection rules, and puzzle validation.

Chapter 06 — Pulseblind

Canvas rendering, keyboard movement, visibility mechanics, and dark-maze design.

Chapter 07 — Inversion Run

Gravity, velocity, obstacle spawning, and collision logic in a fast arcade loop.

Chapter 08 — Wreckline Salvage

Resource management, risk and reward, grid movement, and event-driven outcomes.

Chapter 09 — Ironwake Trader

Dynamic markets, cargo systems, pirate encounters, and ship upgrades.

Chapter 10 — Relic Cartographer

Procedural exploration, hidden tiles, traps, relics, and extraction goals.

Chapter 11 — Blacksite Broadcast

Decision tradeoffs, multiple variables, narrative pressure, and turn-based management.

Chapter 12 — Deadzone Sector

Real-time canvas action, projectiles, enemy waves, score tracking, and collision checks.

Chapter 13 — Phantom Mirror Arena

Replay systems, state history, mirror enemies, and round progression.

Chapter 14 — Second Shadow Heist

Stealth mechanics, route replay, loop pressure, and key-to-vault puzzle design.

Chapter 15 — Hero Dice: Villain Crisis

Capstone project with dice combat, hero selection, progression systems, and persistent campaign state.