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:
parent
351fc0cce2
commit
d5979516b4
4 changed files with 52 additions and 7 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue