https://github.com/tiagodanin/rock-paper-scissors-ml
Rock Paper Scissors Machine Learning
https://github.com/tiagodanin/rock-paper-scissors-ml
brainjs ia machine-learning nodejs paper rock rock-paper-scissors scissors
Last synced: 5 months ago
JSON representation
Rock Paper Scissors Machine Learning
- Host: GitHub
- URL: https://github.com/tiagodanin/rock-paper-scissors-ml
- Owner: TiagoDanin
- License: mit
- Created: 2018-12-22T18:17:16.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-30T03:00:15.000Z (over 2 years ago)
- Last Synced: 2025-04-21T08:45:14.538Z (6 months ago)
- Topics: brainjs, ia, machine-learning, nodejs, paper, rock, rock-paper-scissors, scissors
- Language: JavaScript
- Size: 11.7 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Rock Paper Scissors ML
Rock Paper Scissors Machine Learning## Usage
```javascript
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](https://nodejs.org/) module available through the
[npm registry](https://www.npmjs.com/). It can be installed using the
[`npm`](https://docs.npmjs.com/getting-started/installing-npm-packages-locally)
or
[`yarn`](https://yarnpkg.com/en/)
command line tools.```sh
npm install rock-paper-scissors-ml --save
```## Dependencies
- [brainjs](https://ghub.io/brainjs): Neural network library
## License
MIT