一款充满刺激的编程和人工智能游戏
In WarriorJS, you write JavaScript or TypeScript to guide a warrior through towers full of enemies. Each floor is a puzzle: battle sludge, dodge archers, rescue captives, and reach the stairs alive. The code you write is the strategy — there's no clicking, no dragging, just logic and sharp thinking.
Whether you're writing your first if statement or refactoring for a perfect
score, every floor will test you.
Install Node.js 22 or later.
Install the CLI:
npm install --global @warriorjs/cliwarriorjsThe game walks you through creating a warrior and choosing a tower. Open the
generated README.md for your first level's instructions, write your solution
in Player.js, then run warriorjs again to see how your warrior fares.
You can also play from your browser at warriorjs.com.
The official docs cover everything from first steps to building your own towers:
The best way to contribute is to build a tower — a set of levels that other players can install and play.
You can also fix bugs, improve the docs, or add new abilities and units. See the contribution guide and Code of Conduct.
This project was born as a port of ruby-warrior. Credits for the original idea go to Ryan Bates.
Special thanks to Guillermo Cura for designing a wonderful logo.
WarriorJS is licensed under a MIT License.
请帮我找出在"Tick, Tick… Boom!"地图的第 9 关中赢得胜利的动作算法!
错误: 没有找到与模式 "packages/**/src" 匹配的文件
我无法登录或为在线平台创建帐户
监控 Player.js 变更并运行
韩语翻译
在 Player.js 中允许导入/要求,以实现用户代码的模块化
检查影响后单元是否仍然存活
带随机敌人的模式
盲模式?
@warriorjs/tower-tick-tick-boom warrior 没有"旋转"能力,只能强制向后撞击