Arcade v2 for developers. Arcade cabinets are services, tokens are API calls, high scores are benchmarks, achievements are SLAs.
  • JavaScript 100%
Find a file
2026-06-30 11:15:00 +00:00
node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 test: add e2e tests 2026-06-28 11:11:01 +00:00
src feat(#1): arcade v2 engine — cabinets, tokens, achievements, high scores, ASCII arcade 2026-06-15 22:07:35 +00:00
tests fix: e2e tests now use CommonJS require for node --test compatibility 2026-06-30 11:14:57 +00:00
package.json feat(#1): arcade v2 engine — cabinets, tokens, achievements, high scores, ASCII arcade 2026-06-15 22:07:35 +00:00
README.md feat(#1): arcade v2 engine — cabinets, tokens, achievements, high scores, ASCII arcade 2026-06-15 22:07:35 +00:00

code-arcade-v2

Arcade v2 for developers. Arcade cabinets are services, tokens are API calls, high scores are benchmarks, achievements are SLAs.

Usage

const { Arcade, CABINET_TYPES } = require('./src/arcade');

const arcade = new Arcade('DevDome Arcade');
arcade.setOwner('Admin');
arcade.registerPlayer('Alice', 5);
arcade.registerPlayer('Bob', 3);

// Play cabinets
arcade.play('Alice', 1); // Retrieve Racer (DB Query)
arcade.play('Alice', 2); // Deploy Fighter (CI Pipeline)
arcade.play('Bob', 3);   // Code Invaders (Bug Hunt)

// Repair broken cabinets
arcade.repairAll();

// Daily challenge
arcade.generateDailyChallenge();

console.log(arcade.arcadeView());
console.log(arcade.report());

Cabinets

  • Retrieve Racer (DB Query) — Racing, difficulty 3, cost 2T
  • Deploy Fighter (CI Pipeline) — Fighting, difficulty 5, cost 5T
  • Code Invaders (Bug Hunt) — Shooter, difficulty 4, cost 3T
  • Stack Puzzle (Architecture) — Puzzle, difficulty 6, cost 4T
  • Rhythm Review (Code Review) — Rhythm, difficulty 4, cost 3T
  • Sandbox RPG (Feature Dev) — RPG, difficulty 7, cost 8T
  • Pixel Dash (Hotfix) — Platformer, difficulty 5, cost 3T

Achievements (SLAs)

First Deploy, High Scorer, SLA Keeper, Speedrunner, Completionist, Flawless Victory, Token Whale, Night Owl