Hey all, just for fun I'm designing a game that is similar to Yahtzee. In order to store the values of the players rolls, I'm envisioning an integer array something like:

int roll_value[10];

Where roll_value[0] could be the value of a "two of a kind" roll and roll_value[1] could be the value of a "three of a kind" roll.

I've hit a conceptual roadblock. Once the value of the roll_value array has been declared, how can I ensure that the player cannot put any further values into that element? Would const do the trick somehow?

Thanks!