warriorjs
CLAUDE.md9.5k starsChanged 9 months agoMITView on GitHub
A game that teaches JavaScript and TypeScript through interactive coding challenges. Players write code to control a warrior navigating through towers full of enemies. Run a single package's tests: npx vitest run apps/cli/ pnpm monorepo with Turborepo. Code is organized into three top-level directories: Dependency flow: spatial → abilities → units → towers, spatial → core → scoring → cli. Each package compiles with tsc to dist/.
- Installs packages
Trending
Quiet this year.thin dataabout the whole repository
Who's talking about olistic/warriorjs
- A Hacker News story“Warriorjs – An exciting game of programming and artificial intelligence”Hacker News · May 11, 2018 · 293 points
- A Hacker News story“Learn JavaScript and artificial intelligence in a fun, interactive way”Hacker News · Jun 30, 2016 · 174 points
- A Hacker News story“Show HN: WarriorJS – Practice JavaScript and problem solving skills and have fun”Hacker News · Apr 30, 2021 · 7 points
- A Hacker News story“WarriorJS: learn JavaScript and ES6 while playing a game”Hacker News · May 14, 2015 · 3 points
- A Hacker News story“A game you play by coding the behaviour of your character”Hacker News · Jun 29, 2016 · 1 points
The biggest 5 of 6 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 6
Talked about on Hacker News (6 times).
On Hacker News · 6
- May 11, 2018Warriorjs – An exciting game of programming and artificial intelligence293 points · 52 comments
- Jun 30, 2016Learn JavaScript and artificial intelligence in a fun, interactive way174 points · 31 comments
- Apr 30, 2021Show HN: WarriorJS – Practice JavaScript and problem solving skills and have fun7 points
- May 14, 2015WarriorJS: learn JavaScript and ES6 while playing a game3 points · 1 comment
- Jun 29, 2016A game you play by coding the behaviour of your character1 point
1 more on Hacker News
- May 19, 2015WarriorJS – learn JavaScript by writing JavaScript1 point
The file
We split this CLAUDE.md into the rules it gives an agent
2 rules. About 0 are common, 0 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 15
Run a single package's tests: npx vitest run apps/cli/
- Very specific: line 41
All imports use .js extensions (ES modules with NodeNext resolution)
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
WarriorJS
A game that teaches JavaScript and TypeScript through interactive coding challenges. Players write code to control a warrior navigating through towers full of enemies.
Commands
pnpm install # Install dependencies
pnpm build # Build all packages (Turborepo handles ordering)
pnpm test # Run all tests
pnpm lint # Check linting/formatting (Biome)
pnpm lint:fix # Auto-fix linting/formattingRun a single package's tests: npx vitest run apps/cli/
Architecture
pnpm monorepo with Turborepo. Code is organized into three top-level directories:
apps/— End-user applications- @warriorjs/cli — CLI for offline play
libs/— Shared libraries- @warriorjs/core — Game engine, level runner, player code loader
- @warriorjs/abilities — Warrior abilities (walk, attack, feel, etc.)
- @warriorjs/units — Game units/enemies
- @warriorjs/effects — Status effects system
- @warriorjs/spatial — Spatial/direction utilities (foundational, no deps)
- @warriorjs/scoring — Score calculation and grade letters
towers/— Built-in tower definitions- @warriorjs/tower-the-narrow-path / tower-the-powder-keep — The Narrow Path and The Powder Keep
Dependency flow: spatial → abilities → units → towers, spatial → core → scoring → cli.
Each package compiles with tsc to dist/.
Conventions
- Biome enforces formatting and linting — don't manually fix style, run
pnpm lint:fix - Lefthook pre-commit hook auto-formats staged files
- All imports use
.jsextensions (ES modules with NodeNext resolution) - Tests live next to source:
src/Foo.test.ts - Coverage thresholds: 80% (lines, functions, branches, statements)
- Conventional Commits with scope:
feat(cli): add language choice,fix(core): handle edge case
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

