5 card draw ai
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
Popular Topics
Advertisement