Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@warriorjs/core

olistic47MIT0.14.0

WarriorJS core

warriorjs, warriorjs-core, warrior, epic, battle, game, learn, polish, refine, test, js, javascript, nodejs, ai, artificial-intelligence, skills

readme

@warriorjs/core

WarriorJS core.

Install

npm install @warriorjs/core

Usage

const warriorjs = require('@warriorjs/core');
import { runLevel } from '@warriorjs/core');
import * as warriorjs from '@warriorjs/core';

API Reference

warriorjs.runLevel(levelConfig: Object, playerCode: string)

Runs the given level config with the given player code.

warriorjs.getLevel(levelConfig: Object)

Returns the level for the given level config.