Amusement park for developers. Rollercoasters per framework, bumper cars merge conflicts, haunted house legacy code.
- JavaScript 100%
| node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 | ||
| src | ||
| tests | ||
| package.json | ||
| README.md | ||
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