Skip to content
breakpoınt

WarriorJS

Write JavaScript that leads a warrior up a tower of enemies

In WarriorJS you guide a warrior up a tower, one floor at a time, toward a sword at the top. You write JavaScript that decides what the warrior does each turn, such as walk, feel what is ahead, attack or rescue a captive. As you climb, the warrior gains new abilities, and your code has to grow with them.

Play on warriorjs.com

Free · Browser · Intermediate

WarriorJS preview

About WarriorJS

It teaches basic JavaScript, conditionals and simple game logic. It suits newer programmers who can write small functions. The AI ideas are simple, so it will not teach advanced AI.

You can play on the website or install the free command-line version from npm, which needs Node.js. The project is open source under the MIT license and started as a port of Ruby Warrior.

On Breakpoint since 23 Oct 2026.

Is this your game? Update the listing

Keyboard shortcuts

j / k
Move down / up the list (this page)
] / [
Next / previous page
o
Open the focused game
b
Save or unsave the focused game
/
Search (the home list, or the command palette elsewhere)
Ctrl K
Command palette: games, skills, pages (works even when single keys are off)
?
This help