summaryrefslogtreecommitdiff
path: root/Ports/ncurses
diff options
context:
space:
mode:
authorLucas CHOLLET <lucas.chollet@free.fr>2022-08-14 15:00:52 +0200
committerAndreas Kling <kling@serenityos.org>2022-08-22 21:20:41 +0200
commit351fc0cce235755f9f74e7f5891c8d7778033e4e (patch)
tree02a286d2f0c197de174c3a62b5562e6ca5eb28e7 /Ports/ncurses
parent5f13a87ce77c5f2cba0707c122f8cf3f584347cf (diff)
downloadserenity-351fc0cce235755f9f74e7f5891c8d7778033e4e.zip
ChessEngine: Use reduced Board objects in MCTSTree
Monte-Carlo methods are known to intensively create nodes and in our case each leaf of the tree stores a board. However, for this use case, we don't need a full board object that also contains game information. This patch adds a `clone_cleared()` method that return a clone without game information and uses it when constructing the tree. It allows the ChessEngine much more possibility before getting out of memory.
Diffstat (limited to 'Ports/ncurses')
0 files changed, 0 insertions, 0 deletions