@warriorjs/core
Version:
WarriorJS core
28 lines (17 loc) • 478 B
Markdown
# @warriorjs/core
> WarriorJS core.
## Install
```sh
npm install @warriorjs/core
```
## Usage
```js
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.