Skip to content

Commit

Permalink
Fix Kritika notes
Browse files Browse the repository at this point in the history
  • Loading branch information
calcitem committed Mar 20, 2020
1 parent c84db35 commit 2642f8f
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ build_script:

artifacts:
- path: release\MillGame.exe
name: $(releaseName)
name: $(releaseName)
4 changes: 2 additions & 2 deletions src/ai/search.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion src/base/zobrist.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ int main(void)

return 0;
}
#endif
#endif
6 changes: 3 additions & 3 deletions src/ui/qt/gamecontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -958,7 +958,7 @@ bool GameController::command(const QString &cmd, bool update /* = true */)
QMessageBox::about(NULL, "游戏结果", message);
#endif
}


gameTest->writeToMemory(cmd);

#ifndef TRAINING_MODE
Expand Down Expand Up @@ -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;
Expand Down
14 changes: 7 additions & 7 deletions version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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

Expand Down

0 comments on commit 2642f8f

Please sign in to comment.