954,480 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Dice Program Help

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

FreakNFlow
Newbie Poster
4 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
 

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

WaltP
Posting Sage w/ dash of thyme
Moderator
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

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.

FreakNFlow
Newbie Poster
4 posts since Feb 2010
Reputation Points: 10
Solved Threads: 0
 

Loop.

WaltP
Posting Sage w/ dash of thyme
Moderator
10,505 posts since May 2006
Reputation Points: 3,348
Solved Threads: 944
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: