mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:27:45 +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
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