How to make a loop that reiterates for a certain number of players?

Something that does something like this


at this point run a loop for all players, in this loop use random to determine the face and depending on the face run a loop (for roll again etc) or give next user the chance.



And this loop is 2-12 people, all rolling die.
They draw 3 die out of a cup of 12.
Then they roll the 3 die, getting fish, hook, or boot on each die.
1
2
3
4
5
int nplayers = 6, i; //6 players in this example
for(i = 0; i < nplayers; ++i)//This loop will now run 6 times. 
{
//Do something
}
Topic archived. No new replies allowed.