improve parent selection

This commit is contained in:
2025-02-26 22:11:27 -05:00
parent bbeb1b8b37
commit 4ec9f3cf21
4 changed files with 38 additions and 24 deletions

View File

@@ -22,6 +22,9 @@ pub struct Move {
/// Indices of this Move's Children
pub children: Vec<usize>,
/// Has this [`Move`] already attempted to create children?
pub tried_children: bool,
/// Value of this move (including children)
pub value: Option<i128>,
@@ -52,6 +55,7 @@ impl Move {
color,
is_trimmed: false,
self_value: 0,
tried_children: false,
};
m.self_value = m.compute_self_value(agent_color);
m