JSPM

rock-paper-scissors-ml

1.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q42351F
  • License MIT

Rock Paper Scissors Machine Learning

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

License

MIT