WarriorJS Docs
  • Player
  • Maker
  • Gemenskap
  • Svenska
    • English
    • العربية
    • Català
    • Čeština
    • Deutsch
    • Ελληνικά
    • Español
    • Français
    • Italiano
    • Polskie
    • Русский
    • Српски језик (Ћирилица)
    • Türkçe
    • 中文
    • 繁體中文
    • Hjälpa till att översätta
  • GitHub

›CLI

Spel

  • Översikt
  • Objekt
  • Spelsätt
  • Perspektiv
  • Poängsättning
  • Episkt läge
  • Torn

Koncept

  • Enheter
  • Krigare
  • Förmågor
  • Rutor

Player API

  • Space API
  • Unit API
  • Turn API

Tips & tricks

  • Allmän
  • JavaScript
  • Artificial Intelligence
  • CLI

CLI

  • Install
  • Options
Translate

Options

There are various options you can pass to the warriorjs command to customize the game. You can run warriorjs --help to see all the available options.

Here is a detailed list:

--directory <path>

Path to a directory under which to run the game. By default, the current working directory is used.

--level <number> (epic mode only)

Practice a level. Use this option on levels you are having difficulty or want to fine-tune the scoring.

--silent

Suppress play log. Use this option if you just care about the outcome of playing a level, and not each step of the play.

--time <seconds>

Delay each turn by seconds. By default, each step of each turn is delayed by 0.6 seconds.

--yes

Assume yes in non-destructive confirmation dialogs.

← Install
  • --directory
  • --level (epic mode only)
  • --silent
  • --time
  • --yes
WarriorJS Docs
Docs
PlayerMaker
Community
SpectrumTwitterFollow WarriorJS on Twitter
More
DonateGitHubStar