yatzy
v4.0.0
Published
Just for fun an implementation of yatzy
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" GeirUsage global install
$ npm i -g yatzy$ yatzy "Ylva Marie" GeirExample 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.jsRelated
yatzy-web this module used in a web version
