Advertisement

5 card draw ai

Started by October 14, 2004 05:08 PM
-1 comments, last by dan1088352 20 years, 1 month ago
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

This topic is closed to new replies.

Advertisement