@ffxiv-teamcraft/simulator
Version:
A FINAL FANTASY XIV crafting simulator
59 lines (41 loc) • 2.01 kB
Markdown
# Teamcraft simulator
[](https://circleci.com/gh/ffxiv-teamcraft/simulator)
[](https://codecov.io/gh/ffxiv-teamcraft/simulator)
[](https://www.npmjs.com/package/@ffxiv-teamcraft/simulator)
[](https://github.com/ffxiv-teamcraft/simulator/issues)
[](https://github.com/ffxiv-teamcraft/simulator/stargazers)
[](https://raw.githubusercontent.com/ffxiv-teamcraft/simulator/master/LICENSE)
## Table of contents
- [About](#about)
- [Installation](#installation)
- [Documentation](#documentation)
- [Development](#development)
- [License](#license)
## About
Teamcraft simulator is a simulation library for FINAL FANTASY XIV.
## Installation
Install through npm:
```bash
npm install --save @ffxiv-teamcraft/simulator
```
## Get started
```ts
const simulation = new Simulation(recipe, [new RapidSynthesis(), new RapidSynthesis()], crafterStats);
const result = simulation.run();
const reliabilityReport = simulation.getReliabilityReport();
```
## Documentation
Everything is detailed on the [documentation website](https://ffxiv-teamcraft.github.io/simulator/).
## Development
### Prepare your environment
* Install [Node.js](http://nodejs.org/) and NPM
* Install local dev dependencies: `npm install` while current directory is this repo
### Testing
Run `npm test` to run tests once or `npm run test:watch` to continually run tests.
### Release
* Bump the version in package.json (once the module hits 1.0 this will become automatic)
```bash
npm run release
```
## License
MIT