mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
ChessEngine: don't store board in non-leaf nodes in MCTS
Also make parameters static so they aren't in every node of the tree this saves a substantial amount of memory.
This commit is contained in:
parent
34433f5dc4
commit
49539abee0
Notes:
sideshowbarker
2024-07-18 11:38:20 +09:00
Author: https://github.com/petelliott
Commit: 49539abee0
Pull-request: https://github.com/SerenityOS/serenity/pull/8209
Reviewed-by: https://github.com/awesomekling
3 changed files with 30 additions and 30 deletions
|
@ -42,9 +42,6 @@ void ChessEngine::handle_go(const GoCommand& command)
|
|||
|
||||
MCTSTree mcts(m_board);
|
||||
|
||||
// FIXME: optimize simulations enough for use.
|
||||
mcts.set_eval_method(MCTSTree::EvalMethod::Heuristic);
|
||||
|
||||
int rounds = 0;
|
||||
while (elapsed_time.elapsed() <= command.movetime.value()) {
|
||||
mcts.do_round();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue