1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:07:34 +00:00

ChessEngine: Don't throw away useful branches from last tree

Computation from last turn might have produced some nodes that are still
accurate. Keeping them should make the engine a bit smarter.
This commit is contained in:
Lucas CHOLLET 2022-08-14 16:39:32 +02:00 committed by Andreas Kling
parent 351fc0cce2
commit d5979516b4
4 changed files with 52 additions and 7 deletions

View file

@ -6,6 +6,7 @@
#pragma once
#include "MCTSTree.h"
#include <LibChess/Chess.h>
#include <LibChess/UCIEndpoint.h>
@ -26,4 +27,5 @@ private:
}
Chess::Board m_board;
Optional<MCTSTree> m_last_tree;
};