Package Exports
- rock-paper-scissors-ml
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rock-paper-scissors-ml) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Rock Paper Scissors ML
Rock Paper Scissors Machine Learning
Usage
const config = {
choices: ['rock', 'paper', 'scissors'],
history: 3,
lastChoices: []
}
const run = rockPaperScissors(config)
run('rock') //winHumane, winMachine, answerHumane, answerMachine
Installation
This is a Node.js module available through the
npm registry. It can be installed using the
npm
or
yarn
command line tools.
npm install rock-paper-scissors-ml --save
Dependencies
- brainjs: Neural network library
License
MIT