百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
W

warriorjs

> DevOps
开源

一款充满刺激的编程和人工智能游戏

9.5K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

一款充满刺激的编程和人工智能游戏




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.

Quick Start

  1. Install Node.js 22 or later.

  2. Install the CLI:

bash
npm install --global @warriorjs/cli
  1. Launch the game:
bash
warriorjs

The 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.

Documentation

The official docs cover everything from first steps to building your own towers:

  • Gameplay
  • Towers
  • Player API

Contributing

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.

Acknowledgments

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.

License

WarriorJS is licensed under a MIT License.

Issues· 19 开放

查看全部 Issues在 GitHub 打开
  • #266

    请帮我找出在"Tick, Tick… Boom!"地图的第 9 关中赢得胜利的动作算法!

    更新于 2025年3月14日
  • #265

    错误: 没有找到与模式 "packages/**/src" 匹配的文件

    更新于 2023年7月18日
  • #259

    我无法登录或为在线平台创建帐户

    更新于 2022年6月3日
  • #258

    监控 Player.js 变更并运行

    更新于 2021年3月2日
  • #255

    韩语翻译

    更新于 2020年6月10日
  • #99

    在 Player.js 中允许导入/要求,以实现用户代码的模块化

    pkg: coretype: feature更新于 2019年2月6日
  • #63

    检查影响后单元是否仍然存活

    good first issuepkg: coretype: enhancementstatus: claimed更新于 2019年1月21日
  • #123

    带随机敌人的模式

    pkg: corearea: game mechanicstype: discussion更新于 2018年11月5日
  • #161

    盲模式?

    pkg: corearea: game mechanicstype: discussion更新于 2018年10月23日
  • #242

    @warriorjs/tower-tick-tick-boom warrior 没有"旋转"能力,只能强制向后撞击

    area: towerstype: enhancementstatus: has pr更新于 2018年10月16日

> 标签

TypeScriptaiartificial-intelligencebattleepic

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月19日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理