mwg API
    Preparing search index...

    Function rollBackgammonDice

    • Doubles roll as four of the same die, not two - the standard backgammon rule.

      Returns number[]

      import { rollBackgammonDice } from '@datamoc/mw_games/board';

      const dice = rollBackgammonDice();
      console.log(dice.length === 2 || dice.length === 4); // true