menu

WarriorJS

An exciting game of programming and Artificial Intelligence

Channels
# All channels
view-forward
# General
view-forward
# Help
view-forward
# Ideas
view-forward
# Show and tell
view-forward
# Tips & tricks
view-forward
# Tutorials
view-forward
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 2 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