Skip to content

Commit

Permalink
chore: fix spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
raklaptudirm committed May 29, 2024
1 parent 66b74f8 commit 3d43977
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions src/mcts/params.rs
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
use std::f64::consts::SQRT_2;

pub struct Params {
cpuct: Param,
cpuct: Param,
}

impl Params {
pub fn new() -> Params {
Params {
cpuct: Param::new(SQRT_2, 1.0, 10.0),
}
}
pub fn cpuct(&self) -> f64 {
self.cpuct.val
}
pub fn new() -> Params {
Params {
cpuct: Param::new(SQRT_2, 1.0, 10.0),
}
}
pub fn cpuct(&self) -> f64 {
self.cpuct.val
}
}

pub struct Param {
val: f64,
min: f64,
max: f64,
val: f64,
min: f64,
max: f64,
}

impl Param {
pub fn new(val: f64, min: f64, max: f64) -> Param {
Param{val, min, max}
}
pub fn new(val: f64, min: f64, max: f64) -> Param {
Param { val, min, max }
}

pub fn set(&mut self, val: f64) {
self.val = val;
}
}
pub fn set(&mut self, val: f64) {
self.val = val;
}
}

0 comments on commit 3d43977

Please sign in to comment.