pub struct PlanSettings {
pub width: u32,
pub candidates: u32,
pub depth: u32,
pub samples: u32,
pub temperature: u32,
}Expand description
How a TurnPlan bot thinks: data, so a persona’s settings can be a
file.
Fields§
§width: u32How many partial turns are kept at each depth, to be extended at the next: the beam. 0 counts as 1.
candidates: u32How many of the ordered commands are tried from each partial turn, from the first. 0 counts as 1.
depth: u32The most of its own commands a plan holds; the side’s turn may end sooner. 0 counts as 1.
samples: u32How many copies each partial turn is played on. 0 counts as 1.
temperature: u32How far from the best the first command’s pick may stray, in points: a command this many points below the best is half as likely. 0 always picks the best.
Trait Implementations§
Source§impl Clone for PlanSettings
impl Clone for PlanSettings
Source§fn clone(&self) -> PlanSettings
fn clone(&self) -> PlanSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PlanSettings
Source§impl Debug for PlanSettings
impl Debug for PlanSettings
Source§impl<'de> Deserialize<'de> for PlanSettings
impl<'de> Deserialize<'de> for PlanSettings
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for PlanSettings
Source§impl PartialEq for PlanSettings
impl PartialEq for PlanSettings
Source§impl Serialize for PlanSettings
impl Serialize for PlanSettings
impl StructuralPartialEq for PlanSettings
Auto Trait Implementations§
impl Freeze for PlanSettings
impl RefUnwindSafe for PlanSettings
impl Send for PlanSettings
impl Sync for PlanSettings
impl Unpin for PlanSettings
impl UnsafeUnpin for PlanSettings
impl UnwindSafe for PlanSettings
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more