本文整理汇总了C++中Hand::getType方法的典型用法代码示例。如果您正苦于以下问题:C++ Hand::getType方法的具体用法?C++ Hand::getType怎么用?C++ Hand::getType使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Hand
的用法示例。
在下文中一共展示了Hand::getType方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: calculateBet
//.........这里部分代码省略.........
if (percent < 8) {
betAct = CALL;
betAmt = minBet == 0 ? 40 : minBet;
} else {
betAct = RAISE;
betAmt = minBet == 0 ? 80 : 2 * minBet;
}
break;
}
case 4: {
if (percent < 7) {
betAct = CALL;
betAmt = minBet == 0 ? 40 : minBet;
} else {
betAct = RAISE;
betAmt = minBet == 0 ? 80 : 2 * minBet;
}
break;
}
case 5: {
if (percent < 5) {
betAct = CALL;
betAmt = minBet == 0 ? 40 : minBet;
} else {
betAct = RAISE;
betAmt = minBet == 0 ? 80 : 2 * minBet;
}
break;
}
}
} else {
if (Current.getType() < 13 && Current.getType() >= 0 && PC > 2)
FP = PC;
else if (Current.getType() < 13 && Current.getType() >= 0 && PC <= 2)
FP = PC - 1;
else if (Current.getType() < 26 && Current.getType() >= 13 && PC > 2)
FP = PC + 2;
else if (Current.getType() < 26 && Current.getType() >= 13 && PC <= 2)
FP = PC + 1;
else if (Current.getType() < 38 && Current.getType() >= 26 && PC == 1)
FP = PC + 3;
else if (Current.getType() < 38 && Current.getType() >= 26 && PC > 1)
FP = PC + 4;
else if (Current.getType() < 106 && Current.getType() >= 38)
FP = 10;
switch (FP) {
case -1: {
if (minBet == 0) {
betAct = CALL;
betAmt = 0;
} else {
betAct = FOLD;
betAmt = 0;
}
break;
}
case 0: {
if (percent < 9) {
if (minBet == 0) {
betAct = CALL;
betAmt = 0;
} else {
betAct = FOLD;
betAmt = 0;