Scores five d6 values against one Yahtzee category.
import { scoreDice } from '@datamoc/mw_games/board';console.log(scoreDice([4, 4, 4, 4, 4], 'yahtzee')); // 50console.log(scoreDice([1, 2, 3, 4, 5], 'chance')); // 15 - the sum of all five diceconsole.log(scoreDice([4, 4, 4, 4, 4], 'fours')); // 20 - five fours, four points each Copy
import { scoreDice } from '@datamoc/mw_games/board';console.log(scoreDice([4, 4, 4, 4, 4], 'yahtzee')); // 50console.log(scoreDice([1, 2, 3, 4, 5], 'chance')); // 15 - the sum of all five diceconsole.log(scoreDice([4, 4, 4, 4, 4], 'fours')); // 20 - five fours, four points each
Scores five d6 values against one Yahtzee category.