Amusement park for developers. Rollercoasters per framework, bumper cars merge conflicts, haunted house legacy code.
  • JavaScript 100%
Find a file
2026-06-30 11:12:56 +00:00
node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 test: add e2e tests 2026-06-24 11:07:44 +00:00
src feat(#1): amusement park engine — rides, guests, queue system, ASCII park map 2026-06-15 00:09:22 +00:00
tests fix: e2e tests now use CommonJS require for node --test compatibility 2026-06-30 11:12:52 +00:00
package.json feat(#1): amusement park engine — rides, guests, queue system, ASCII park map 2026-06-15 00:09:22 +00:00
README.md feat(#1): amusement park engine — rides, guests, queue system, ASCII park map 2026-06-15 00:09:22 +00:00

code-amusement-park

Amusement park for developers. Rollercoasters per framework, bumper cars merge conflicts, haunted house legacy code.

Usage

const { Park } = require('./src/park');
const { GUEST_TYPES } = require('./src/guest');

const park = new Park('DevWorld');

// Admit guests
park.admitGuest('Alice', GUEST_TYPES.JUNIOR);
park.admitGuest('Bob', GUEST_TYPES.INTERN);

// Sell tickets
park.sellDayPass('Alice');
park.sellTickets('Bob', 5);
park.sellFastPass('Bob');

// Ride
park.joinQueue('Alice', 'React Re-Renderer');
park.runRide('React Re-Renderer');

// View map
console.log(park.parkMap());
console.log(park.parkReport());

Rides

  • React Re-Renderer (Rollercoaster, thrill 9) — Infinite loops of setState drops
  • Legacy Manor (Haunted House, thrill 6) — Nobody knows who wrote this code
  • Merge Conflict Smash (Bumper Cars, thrill 4) — Git merge conflicts ramming
  • Production Deploy Wheel (Ferris Wheel, thrill 2) — Anxious deploys from above
  • Framework Carousel (Carousel, thrill 1) — jQuery -> Angular -> React -> back to jQuery
  • Stack Overflow (Drop Tower, thrill 10) — Question closed as duplicate
  • npm install Nightmare (Rollercoaster, thrill 8) — 400 dependencies, 3 vulnerabilities
  • Debug Log River (Carousel, thrill 2) — Floating through console.log()

Components

  • RideCatalog — 8 default rides with dev themes, maintenance/breakdown system
  • Guest — 5 types (Intern to Staff), thrill tolerance, satisfaction tracking
  • Queue — Fast pass priority (30% slots), wait estimation, capacity loading
  • Park — Full operations: tickets, day passes, fast passes, weather, maintenance, ASCII map