Home

Awesome

<div align="center"> <a href="https://warrior.js.org"> <img alt="WarriorJS Banner" title="WarriorJS" src="logo/warriorjs-banner-dark.png?raw=true"> </a> </div> <br /> <div align="center"> <strong>An exciting game of programming and Artificial Intelligence</strong> </div> <br /> <div align="center"> <a href="https://circleci.com/gh/olistic/warriorjs"> <img alt="CircleCI" src="https://img.shields.io/circleci/project/github/olistic/warriorjs/master.svg?style=flat-square"> </a> <a href="https://codecov.io/gh/olistic/warriorjs"> <img alt="Codecov" src="https://img.shields.io/codecov/c/github/olistic/warriorjs.svg?style=flat-square"> </a> <a href="https://twitter.com/warrior_js"> <img alt="Follow+WarriorJS+on+Twitter" src="https://img.shields.io/twitter/follow/warrior_js.svg?label=follow+warriorjs&style=flat-square"> </a> <a href="https://spectrum.chat/warriorjs"> <img alt="Join+WarriorJS+on+Spectrum" src="https://img.shields.io/badge/join_the_community-on_spectrum-7b16ff.svg?style=flat-square"> </a> </div> <br />

In WarriorJS, you are a warrior climbing a tall tower to reach The JavaScript Sword at the top level. Legend has it that the sword bearer becomes enlightened in the JavaScript language, but be warned: the journey will not be easy. On each floor, you need to write JavaScript to instruct the warrior to battle enemies, rescue captives, and reach the stairs alive...

No matter if you are new to programming or a JavaScript guru, WarriorJS will put your skills to the test. Will you dare?

Play

Go to warriorjs.com and play from the comfort of your browser! Sharpen your skills and compete against other players around the globe. Good luck in your journey, warrior!

Documentation

Although there is some in-game documentation, at some point you may want to visit the official docs.

Jump straight to some of the most-visited pages:

CLI

Wanna play offline? No problem, just follow these steps:

  1. Install WarriorJS CLI with npm:
npm install --global @warriorjs/cli
  1. Launch the game:
warriorjs
  1. Create your warrior.

  2. You'll be pointed to a README file with instructions for the first level.

Check out the Install docs for more details.

Preview

WarriorJS Preview

WarriorJS CLI launched from the Integrated Terminal in VS Code. To the left, Player.js, and to the right, a Markdown Preview of README.md.

Contributing

We welcome contributions to WarriorJS! These are the many ways you can help:

Please read our contribution guide to get started. Also note that this project is released with a Contributor Code of Conduct, please make sure to review and follow it.

Contributors

Thanks goes to each one of our contributors! :pray: Become a contributor.

<a href="https://github.com/olistic/warriorjs/graphs/contributors"><img src="https://opencollective.com/warriorjs/contributors.svg?width=890&button=false" /></a>

Backers

Support us with a monthly donation and help us continue our activities! Become a backer.

<a href="https://opencollective.com/warriorjs#backers"><img src="https://opencollective.com/warriorjs/backers.svg?width=890" /></a>

Sponsors

Become a sponsor and get your logo here and on the official docs! Become a sponsor.

<a href="https://opencollective.com/warriorjs#sponsors"><img src="https://opencollective.com/warriorjs/sponsors.svg?width=890" /></a>

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.