mirror of
https://github.com/official-stockfish/Stockfish.git
synced 2026-07-22 12:47:08 +00:00
Fix Typo
closes https://github.com/official-stockfish/Stockfish/pull/6436 No functional change
This commit is contained in:
+1
-1
@@ -100,7 +100,7 @@ using Stats = MultiArray<StatsEntry<T, D>, Sizes...>;
|
||||
// see https://www.chessprogramming.org/Butterfly_Boards
|
||||
using ButterflyHistory = Stats<std::int16_t, 7183, COLOR_NB, UINT_16_HISTORY_SIZE>;
|
||||
|
||||
// LowPlyHistory is addressed by play and move's from and to squares, used
|
||||
// LowPlyHistory is addressed by ply and move's from and to squares, used
|
||||
// to improve move ordering near the root
|
||||
using LowPlyHistory = Stats<std::int16_t, 7183, LOW_PLY_HISTORY_SIZE, UINT_16_HISTORY_SIZE>;
|
||||
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ constexpr std::string_view version = "dev";
|
||||
|
||||
// Our fancy logging facility. The trick here is to replace cin.rdbuf() and
|
||||
// cout.rdbuf() with two Tie objects that tie cin and cout to a file stream. We
|
||||
// can toggle the logging of std::cout and std:cin at runtime whilst preserving
|
||||
// can toggle the logging of std::cout and std::cin at runtime whilst preserving
|
||||
// usual I/O functionality, all without changing a single line of code!
|
||||
// Idea from http://groups.google.com/group/comp.lang.c++/msg/1d941c0f26ea0d81
|
||||
|
||||
|
||||
+1
-1
@@ -424,7 +424,7 @@ void move_to_front(std::vector<T>& vec, Predicate pred) {
|
||||
#elif defined(_MSC_VER)
|
||||
#define sf_always_inline __forceinline
|
||||
#else
|
||||
// do nothign for other compilers
|
||||
// do nothing for other compilers
|
||||
#define sf_always_inline
|
||||
#endif
|
||||
|
||||
|
||||
+1
-1
@@ -911,7 +911,7 @@ void Position::do_move(Move m,
|
||||
|
||||
if (more_than_one(pawns))
|
||||
{
|
||||
// If there are two pawns potentially being abled to capture and at least one
|
||||
// If there are two pawns potentially being able to capture and at least one
|
||||
// is not pinned, ep is legal as there are no horizontal exposed checks
|
||||
if (!more_than_one(blockers_for_king(them) & pawns))
|
||||
{
|
||||
|
||||
+1
-7
@@ -699,18 +699,12 @@ Value Search::Worker::search(
|
||||
ss->ttPv = excludedMove ? ss->ttPv : PvNode || (ttHit && ttData.is_pv);
|
||||
ttCapture = ttData.move && pos.capture_stage(ttData.move);
|
||||
|
||||
// At this point, if excluded, skip straight to step 6, static eval. However,
|
||||
// to save indentation, we list the condition in all code between here and there.
|
||||
|
||||
// Step 6. Static evaluation of the position
|
||||
Value unadjustedStaticEval = VALUE_NONE;
|
||||
const auto correctionValue = correction_value(*this, pos, ss);
|
||||
// Skip early pruning when in check
|
||||
if (ss->inCheck)
|
||||
{
|
||||
// Skip early pruning when in check
|
||||
ss->staticEval = eval = (ss - 2)->staticEval;
|
||||
improving = false;
|
||||
}
|
||||
else if (excludedMove)
|
||||
unadjustedStaticEval = eval = ss->staticEval;
|
||||
else if (ss->ttHit)
|
||||
|
||||
Reference in New Issue
Block a user