Skip to content

Commit

Permalink
perf improve
Browse files Browse the repository at this point in the history
  • Loading branch information
Chijun Sima committed Dec 24, 2017
1 parent 1935db3 commit 912fc0f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions chessboard/chessboard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ chessboard::chessboard() noexcept
pos[i][ii] = 7 - max(abs(i - 7), abs(ii - 7));
}
}
score_cache.reserve(15 * 15);
for (int i = 0; i < 15; ++i)
{
for (int ii = 0; ii < 15; ++ii)
Expand Down

0 comments on commit 912fc0f

Please sign in to comment.