I am in need of some help. I need a program that will play the game Three's Free. You roll six dice. 3's are equal to 0. Every turn you take away one of the dice, so every time you roll you take away one die. If you don't roll any three's then you take the smallest die and put into your pot. At the end of the game you add up your total. It would be nice if you could choose which die you could take out as well, or if you could choose multiple dice to take out. Any help would be great.

Thanks

Use the functions srand() and rand() to roll the dice.

I get that. Ill use srand(time) for the random rolls. How would I go about putting the six dice to show side by side and have me be able to pick the ones I want to take out.

Loop.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.