yatzy
v4.0.0
Published
Just for fun an implementation of yatzy
Downloads
22
Readme
yatzy
Just for fun an implementation of yatzy that will play the game for you... so you don't have to ;-)
VERY WIP starting with the variation "Forced Yatzy"
Usage npx
Add players separated by space
$ npx yatzy "Ylva Marie" Geir
Usage global install
$ npm i -g yatzy
$ yatzy "Ylva Marie" Geir
Example as module
// game.js
import yatzy from 'yatzy';
const Game = yatzy()
Game.addPlayer('Ylva Marie')
Game.addPlayer('Geir')
Game.randomizePlayersOrder()
Game.play()
Game.printScoreCard()
$ node game.js
Related
yatzy-web this module used in a web version