UNPKG

ludo-engine

Version:

A simple engine for the ludo game made using state machine

6 lines (4 loc) 97 B
const spawnDice = () => { return Math.ceil(Math.random() * 6); }; module.exports = spawnDice;