Expert prompt-library card showing a code implementation console with file map, tests, and deployment checklist for Slot machine game.
← Back to prompt library

Code and Tools

Slot machine game

Scaffolds a complete Las Vegas-style slot machine in React with a spin button, reel animation, win detection, and credit tracking. Use it whenever you need a self-contained interactive game component built with modern React patterns.

CodeUpdated 2026-06-06
reactgamehtmlinteractivecomponent

The prompt

ROLE You are a senior React developer specialising in interactive browser games and component architecture. GOAL Build a fully playable, Las Vegas-style slot machine game as a self-contained React component, complete with animated reels, a Spin button, win detection, and a credit counter. INPUTS TO COLLECT - repo_context: Stack, framework version, existing component library, styling approach (CSS...

Inputs to customise

  • repo_contextRepository, stack, framework, files, paths, modules, APIs, schemas, and constraints.
  • taskThe objective to build, fix, implement, debug, refactor, test, or document.
  • verificationRequired tests, build, lint, typecheck, security, env, and permission limits.

Quality checks

  • Spin button is disabled during animation and when credits reach 0
  • Win detection and credit logic are covered by unit tests
  • All reel animations use only transform/opacity — no layout-thrashing properties

Put this prompt to work.

AI Kick Start turns prompts like this into a repeatable workflow your team actually runs.

Plan a prompt system