menu
announcement

Spectrum is now read-only. Learn more about the decision in our official announcement.

WarriorJS

An exciting game of programming and Artificial Intelligence

Channels
Team

How do I play from a local installation?

May 19, 2018 at 2:47am

How do I play from a local installation?

May 19, 2018 at 2:47am (Edited 4 years ago)
If you prefer to install /cli locally instead of globally, follow these steps:
  1. Create the directory where you want the game to be installed: mkdir warriorjs
  2. Move on to that directory: cd warriorjs
  3. Create a package.json file with the following contents:
{
"name": "warriorjs",
"private": true,
"scripts": {
"start": "warriorjs"
}
}
  1. Install WarriorJS locally: npm install /cli
  2. Launch the game: npm start
That's it!
No messages yet