every round the dice count increases by one. you are trying to get all the dices to the same value. once you get the dice to the value you don't roll it again. and if you get a dice to that number it is in the completed rolles. dice that you still need to get to the value are in the rolles.
I was playing a game like this in RL but I ran out of dice so first thought that came into my brain was screaming MAKE IT IN SCRATCH!!! So I did. I also wanted to figure out the avrage amount of rolles per round. this took me 15 min so not long.