unicycle = function(numattable1, crds1, board1, round1, currentbet, mychips1, pot1, roundbets, blinds1, chips1, ind1, dealer1, tablesleft) { a1 = 0 #all combinations of AA, KK, QQ, JJ, TT, 99, go all in if ((crds1[1,1] == crds1[2,1]) && (crds1[1,1] >= 9)) a1 = mychips1 #AK, AQ, AJ, KQ, AT, KJ, QJ, JT same suit, go all in if ((crds1[1,1] >= 11) && (crds1[2,1] >= 10) && (crds1[1,2] == crds1[2,2])) a1 = mychips1 #AK off suit AQ off suit, go all in if ((crds1[1,1] == 14) && (crds1[2,1] >= 12)) a1 = mychips1 #if the highest card is greater than 10, and have less than 3xblinds, go in half the time x = runif(1) if ((mychips1 < 3 * blinds1) && (crds1[1, 1] >= 10) && (x < 0.5)) a1 = mychips1 a1 }