From 242b2022ae234e252fe410b276e6d7c971147980 Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 15 Aug 2026 20:47:22 +0200 Subject: renaming things --- src/bot.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/bot.cpp') 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; -- cgit v1.2.3