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.
Free · Browser · Intermediate

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.
