hi,

actually,am doing a programming project concerning a ludo game. i must create a ludo game in cpp langauge. if anyone can help me in designing the die,it would be very nice. i am using the rand and srand function to genarate the random number of the die. but i can implement it. please help me..how can i do the rolling of the die?and generate a random number?

thank you in advance

Recommended Answers

All 2 Replies

Just get a random number between 0 and the number of sides on the die: rand() % sides . There's no complex logic involved.

what game is called "game" (which is what "ludo" means...)?

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.