Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
W

warriorjs

> DevOps
Open source

An exciting game of programming and Artificial Intelligence

9.5K stars0 likes0 views
WebsiteGitHub

About

An exciting game of programming and Artificial Intelligence




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 open

View all issuesOpen on GitHub
  • #266

    Please help me with the algorithm of moves leading to victory in this 9th level on the map "Tick, Tick... Boom!"!

    Updated Mar 14, 2025
  • #265

    Error: No files matching the pattern "packages/**/src" were found

    Updated Jul 18, 2023
  • #259

    I cannot sign in or create an account for the online platform

    Updated Jun 3, 2022
  • #258

    Watch for Player.js changes and run

    Updated Mar 2, 2021
  • #255

    Korean Translation

    Updated Jun 10, 2020
  • #99

    Allow import/require in Player.js for modularity of user code

    pkg: coretype: featureUpdated Feb 6, 2019
  • #63

    Check if unit is alive after effects

    good first issuepkg: coretype: enhancementstatus: claimedUpdated Jan 21, 2019
  • #123

    Mode with random enemies

    pkg: corearea: game mechanicstype: discussionUpdated Nov 5, 2018
  • #161

    Blind Mode?

    pkg: corearea: game mechanicstype: discussionUpdated Oct 23, 2018
  • #242

    @warriorjs/tower-tick-tick-boom warrior haven't got the "pivot" ability and bashing 'backward' forcedly

    area: towerstype: enhancementstatus: has prUpdated Oct 16, 2018

> Tags

TypeScriptaiartificial-intelligencebattleepic

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 29, 2026
CategoryDevOps
PricingOpen source

> Related tools

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