Jump to content
  • Advertisement
Sign in to follow this  

5 card draw ai

This topic is 5393 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

int game::ai() { int rndnum = rand()%5; int rndnuma = rand()%10; //start of it if (card_rank[2] <14) { if(rndnum>2) { bett = false; } else { bett = true; } } //set the limit if(bett == true) { limit = rndnum*rndnuma + card_rank[2]; bet_amount = rndnum-1 + card_rank[2] + (17 * rndnuma); //end of it } } still more work to be done, this is the beta. please rate it

Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!