Let's start by installing WarriorJS globally with npm.
Open the terminal and run:
npm install --global @warriorjs/cli
After installing the game, you can execute it by running the
warriorjs command in the terminal:
That's it! This will guide you through the creation of your warrior. Give your warrior a proper name and choose the "Baby Steps" tower.
After you've done that, you should have the following file structure (we decided to name our warrior after the bastard son of Lord Eddard Stark):
warriorjs └── jon-snow-baby-steps ├── Player.js └── README.md
jon-snow-baby-stepsis your profile's directory.
Player.jsis your warrior's brain, you'll be editing this file often.
README.mdcontains the instructions for the current level.
Go ahead and open
README.md to find the instructions for the first level.