Fix Kritika notes
This commit is contained in:
parent
c84db35655
commit
2642f8f46b
|
@ -24,4 +24,4 @@ build_script:
|
|||
|
||||
artifacts:
|
||||
- path: release\MillGame.exe
|
||||
name: $(releaseName)
|
||||
name: $(releaseName)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -120,4 +120,4 @@ int main(void)
|
|||
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
#endif
|
||||
|
|
|
@ -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;
|
||||
|
|
14
version.sh
14
version.sh
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue