WarriorJS Docs
  • Joueur
  • Créateur
  • Communauté
  • Français
    • English
    • العربية
    • Català
    • Čeština
    • Deutsch
    • Ελληνικά
    • Español
    • Italiano
    • Polskie
    • Русский
    • Српски језик (Ћирилица)
    • Svenska
    • Türkçe
    • 中文
    • 繁體中文
    • Aidez-nous à traduire
  • GitHub

›CLI

Jeu

  • Aperçu
  • Objectif
  • Gameplay
  • Perspective
  • Score
  • Mode Épique
  • Towers

Concepts

  • Unités
  • Guerrier
  • Aptitudes
  • Espaces

API joueur

  • API de l'espace
  • API des unités
  • API des tours

Trucs et Astuces

  • Général
  • JavaScript
  • Intelligence artificielle
  • CLI

CLI

  • Install
  • Options
Translate

Install

Let's start by installing WarriorJS globally with npm.

Open the terminal and run:

npm install --global @warriorjs/cli

IMPORTANT: Node.js >=8 needs to be installed in your computer before running the npm command. The recommended installation method is through the official installer.

After installing the game, you can execute it by running the warriorjs command in the terminal:

warriorjs

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-steps is your profile's directory.
  • Player.js is your warrior's brain, you'll be editing this file often.
  • README.md contains the instructions for the current level.

Go ahead and open README.md to find the instructions for the first level.

← Instructions sur les CLIOptions →
WarriorJS Docs
Docs
PlayerMaker
Community
SpectrumTwitterFollow WarriorJS on Twitter
More
DonateGitHubStar