Fix Kritika notes

This commit is contained in:
Calcitem 2020-03-21 00:05:54 +08:00
parent c84db35655
commit 2642f8f46b
5 changed files with 14 additions and 14 deletions

View File

@ -24,4 +24,4 @@ build_script:
artifacts:
- path: release\MillGame.exe
name: $(releaseName)
name: $(releaseName)

View File

@ -818,8 +818,8 @@ value_t AIAlgorithm::search(depth_t depth, value_t alpha, value_t beta, Node *no
#ifdef DEBUG_AB_TREE
if (requiredQuit) {
node->isTimeout = true;
} else {
node->isLeaf = true;
} else {
node->isLeaf = true;
}
#endif

View File

@ -120,4 +120,4 @@ int main(void)
return 0;
}
#endif
#endif

View File

@ -958,7 +958,7 @@ bool GameController::command(const QString &cmd, bool update /* = true */)
QMessageBox::about(NULL, "游戏结果", message);
#endif
}
gameTest->writeToMemory(cmd);
#ifndef TRAINING_MODE
@ -1230,8 +1230,8 @@ void GameController::saveScore()
state.nPlayed = state.score[BLACK] + state.score[WHITE] + state.score_draw;
if (state.nPlayed == 0) {
goto out;
if (state.nPlayed == 0) {
goto out;
}
textStream << "Sum\t" + QString::number(state.nPlayed) << endl;

View File

@ -8,13 +8,13 @@ rm -f $VERSION_H
git rev-list HEAD | sort > config.git-hash
LOCALVER=`wc -l config.git-hash | awk '{print $1}'`
TAG=`git describe --tags $(git rev-list --tags --max-count=1)`
LOCALVER="$(wc -l config.git-hash | awk '{print $1}')"
TAG="$(git describe --tags "$(git rev-list --tags --max-count=1)")"
if [ $LOCALVER \> 1 ] ; then
VER=`git rev-list origin/$GIT_BRANCH | sort | join config.git-hash - | wc -l | awk '{print $1}'`
if [ $VER != $LOCALVER ] ; then
VER="$VER+$(($LOCALVER-$VER))"
if [ "$LOCALVER" -gt "1" ] ; then
VER=$(git rev-list origin/$GIT_BRANCH | sort | join config.git-hash - | wc -l | awk '{print $1}')
if [ "$VER" != "$LOCALVER" ] ; then
VER="$VER+$((LOCALVER-VER))"
fi
if git status | grep -q "modified:" ; then
VER="${VER}M"
@ -28,7 +28,7 @@ fi
rm -f config.git-hash
cat $TEMPLATE_FILE | sed "s/\$FULL_VERSION/$GIT_VERSION/g" > $VERSION_H
sed "s/\$FULL_VERSION/$GIT_VERSION/g" < $TEMPLATE_FILE > $VERSION_H
git update-index --assume-unchanged $VERSION_H