Skip to content

Commit

Permalink
- min()にstd::つけ忘れていたの修正
Browse files Browse the repository at this point in the history
- fix some comments
  • Loading branch information
yaneurao committed Dec 16, 2023
1 parent e12b991 commit 1f23ea6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
4 changes: 2 additions & 2 deletions source/book/makebook2023.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,8 +492,8 @@ namespace MakeBook2023
}

// 親に伝播するほうはvalueを反転させておく。
parent_vd.value = - parent_vd.value;
parent_vd.depth = min(parent_vd.depth + 1 , BOOK_DEPTH_INF);
parent_vd.value = - parent_vd.value;
parent_vd.depth = std::min(parent_vd.depth + 1 , BOOK_DEPTH_INF);

return best;
};
Expand Down
1 change: 1 addition & 0 deletions source/testcmd/benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ const vector<string> BenchSfen =
/// bench : search default positions up to depth 13
/// bench 64 1 15 : search default positions up to depth 15 (TT = 64MB)
/// bench 64 1 100000 default nodes : search default positions for 100K nodes each
/// bench 64 1 20 default depth : search default positions for depth 20
/// bench 64 4 5000 current movetime : search current position with 4 threads for 5 sec
/// bench 16 1 5 blah perft : run a perft 5 on positions in file "blah"

Expand Down
8 changes: 4 additions & 4 deletions source/types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,10 @@ std::ostream& operator<<(std::ostream& os, RepetitionState rs)
namespace Search {
LimitsType Limits;

/// RootMove::extract_ponder_from_tt() is called in case we have no ponder move
/// before exiting the search, for instance, in case we stop the search during a
/// fail high at root. We try hard to have a ponder move to return to the GUI,
/// otherwise in case of 'ponder on' we have nothing to think about.
// Called in case we have no ponder move before exiting the search,
// for instance, in case we stop the search during a fail high at root.
// We try hard to have a ponder move to return to the GUI,
// otherwise in case of 'ponder on' we have nothing to think about.

// 探索を抜ける前にponderの指し手がないとき(rootでfail highしているだとか)にこの関数を呼び出す。
// ponderの指し手として何かを指定したほうが、その分、相手の手番において考えられて得なので。
Expand Down

0 comments on commit 1f23ea6

Please sign in to comment.