Sports league for developers. Teams are services, matches are deploys, season is sprint, playoffs are prod push, championship is launch.
  • JavaScript 100%
Find a file
2026-06-30 11:15:18 +00:00
node_modules/.vite/vitest/da39a3ee5e6b4b0d3255bfef95601890afd80709 test: add e2e tests 2026-06-28 11:11:29 +00:00
src feat(#1): sports league v2 engine — teams, matches, season, standings, playoffs, ASCII arena 2026-06-16 11:08:05 +00:00
tests fix: e2e tests now use CommonJS require for node --test compatibility 2026-06-30 11:15:15 +00:00
package.json feat(#1): sports league v2 engine — teams, matches, season, standings, playoffs, ASCII arena 2026-06-16 11:08:05 +00:00
README.md feat(#1): sports league v2 engine — teams, matches, season, standings, playoffs, ASCII arena 2026-06-16 11:08:05 +00:00

code-sports-v2

Sports league for developers. Teams are services, matches are deploys, season is sprint, playoffs are prod push, championship is launch.

Usage

const { League } = require('./src/league');

const league = new League('Dev League');

// Play a season
for (let week = 0; week < league.seasonLength; week++) {
  league.playWeek();
}

// Playoffs
const playoffs = league.runPlayoffs();

console.log(league.arenaView());
console.log(league.report());

Team Archetypes

  • Powerhouse (Monolith) — DEF 9, slow but unstoppable
  • Speedster (Microservice) — Speed 9, fast but fragile
  • All-Star (Full-Stack) — Balanced, does everything well
  • Defensive (Legacy) — DEF 10, never scores, never loses
  • Chaos (Prototype) — ATK 9, unpredictable brilliance or catastrophe