Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Robert Rosenthal

Need info on casino (roulette) library/source

This topic is 5615 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Could someone please assist me. I saw an ad for a casino source code library sometime in the last four months. Seem to recall that it was in Dr. Dobbs but can''t seem to find it. Could be just a senior moment on my part! Does anyone know of this or any good roulette code? Thanks Bob R

Share this post


Link to post
Share on other sites
Advertisement

result = rand(38); // number from 1-38

if (result<37) {
// 1-36
black = (result%2==0); // this may be backward is 1 black?
} else if (result==37) {
// 0
} else {
// 00
}


Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!