int GameTree::UndoMove() { if(currIdx == 0) return 0; val -=MoveValue(); currIdx = PrevIdx(); currDepth--; return 1; }
void OutReviewBuff(void) { InitPushCRC(); uint wSize = 0; wSize += PushChar(REVIEW_BUFF_COUNT); wSize += PushIntBig(REVIEW_BUFF_SIZE); wSize += PushChar(ibBuff); wSize += PushChar(CurrIdx()); wSize += PushChar(PrevIdx()); wSize += Push(&mmbBuff, sizeof(mmbBuff)); Output(wSize); }
uint PrevReviewInt(uchar i) { return mmbBuff[PrevIdx()][4+i*2] + mmbBuff[PrevIdx()][4+i*2+1]*0x100; }