add AIForm

This commit is contained in:
2026-11-05 17:24:45 +08:00
parent 9e6770686b
commit 97a675cc43
9 changed files with 303 additions and 36 deletions
+3 -3
View File
@@ -376,7 +376,7 @@ int __fastcall TWLDiffChip::HandleResult(int res, double wl)
bool bLevel = false;
TLevelRow* pRow = (TLevelRow*)pPolicy->aRows[iRank];
if(bGlobal && !g_aGames.bFloat && !((TLevelPolicy*)pPolicy)->bInstant){//非立即升降
if(nWLDiff >= pRow->nCondWin || nWLDiff <= pRow->nCondLos){ //达到升降条件
if(nWLDiff >= pRow->nCondWin || nWLDiff < pRow->nCondLos){ //达到升降条件
g_aGames.AllBetOff();
bWait = g_aGames.nBetted[2]>0; //等待结算
DebugPrint("wait count: %d", g_aGames.nBetted[2]);
@@ -388,11 +388,11 @@ int __fastcall TWLDiffChip::HandleResult(int res, double wl)
}
if(!bWait){
if(nWLDiff >= pRow->nCondWin){ //赢走向
if(nWLDiff >= pRow->nCondWin){ //赢走向,闭区间
iRank = pRow->iWin - 1;
bLevel = true;
}
else if(nWLDiff <= pRow->nCondLos){ //输走向
else if(nWLDiff < pRow->nCondLos){ //输走向,开区间
iRank = pRow->iLos - 1;
bLevel = true;
}