5 card draw ai

Started by
-1 comments, last by dan1088352 19 years, 6 months 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