diff options
| author | Adam <adammegarules1@gmail.com> | 2026-08-15 20:47:22 +0200 |
|---|---|---|
| committer | Adam <adammegarules1@gmail.com> | 2026-08-15 20:47:22 +0200 |
| commit | 242b2022ae234e252fe410b276e6d7c971147980 (patch) | |
| tree | 6352cc5b7247d1d7ca688b15ec71122696682f94 /src/bot.cpp | |
| parent | 831411d0a4fd7f67d6a27a6275dec0c6513a23f2 (diff) | |
renaming things
Diffstat (limited to 'src/bot.cpp')
| -rw-r--r-- | src/bot.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bot.cpp b/src/bot.cpp index 42fa4b6..03a0727 100644 --- a/src/bot.cpp +++ b/src/bot.cpp @@ -123,11 +123,11 @@ static int quiescenceSearch(Game *b, int qdepth, int alpha, int beta, int ply) { auto moves = GetSortedLegalMoves(b, false, nullptr); for (uint16_t move : moves) { - UndoMove undo = MakeMove(move, b); + Undo undo = MakeMove(move, b); int score = -quiescenceSearch(b, qdepth + 1, -beta, -alpha, ply + 1); - UnMakeMove(undo, b); + UndoMove(undo, b); if (score >= beta) { return beta; @@ -198,11 +198,11 @@ static int search(int depth, Game *b, int alpha, int beta, int ply) { int bestScore = -INF; for (uint16_t move : moves) { - UndoMove undo = MakeMove(move, b); + Undo undo = MakeMove(move, b); int score = -search(depth - 1, b, -beta, -alpha, ply + 1); - UnMakeMove(undo, b); + UndoMove(undo, b); if (searchStopped) { break; } @@ -254,11 +254,11 @@ static SearchResult SearchDepth(Game *b, int depth, int alpha = -INF; int beta = INF; for (uint16_t move : moves) { - UndoMove undo = MakeMove(move, b); + Undo undo = MakeMove(move, b); int eval = -search(depth - 1, b, -beta, -alpha, 1); - UnMakeMove(undo, b); + UndoMove(undo, b); if (searchStopped) { break; |
