Skip to content

Dice Object Implementation: Return an array of moves

User Story

As the developer, I want a method in the dice class that returns an array of 2 random number between 1 and 6, and if the number is the same return an array of length 4, with the selected random numbers.

Acceptance Criteria

A pseudo-random number generator is implemented, and used to create random numbers. If 2 random numbers are the same, double the array.

Dev Notes

The seed for the random number generator should be able to be set by the unit test.

Edited by Larry Milne