how can coded in c++ for a dice game which has below funcation
1) pop the message to user inter the number of plyer.
2) inter the name of plyer.
3) rooling the dice and outcomes be add in total secure of this plyer.
4) name of next plyer
5) at the end sammry of the game (secure of all plyer with their name)

Recommended Answers

All 2 Replies

muhammad.asim.5458, show us your code, and your question, and we'll help.

Think out the logic first, simple logic. Use input streams to enter the number of players and the names of the players . Then use the random(); function to generate a number for each palyer and save it to their scores . Then , finally , use the output streams to output the summary of the game.
Happy Birthday to your DICE GAME.

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.