Making a Yahtzee game in JavaScript for training.