Skip to content

TiagoDanin/Rock-Paper-Scissors-ML

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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