Added builder for History, and start migrating test to use builder instead.

This commit is contained in:
2022-06-22 21:13:24 +02:00
parent a573f5cf0a
commit 73b9cabac8
3 changed files with 216 additions and 70 deletions

View File

@@ -11,18 +11,17 @@ mod history;
mod message;
mod player;
use gaussian::Gaussian;
use message::DiffMessage;
pub use game::Game;
pub use gaussian::Gaussian;
pub use history::History;
use message::DiffMessage;
pub use player::Player;
const BETA: f64 = 1.0;
pub const BETA: f64 = 1.0;
pub const MU: f64 = 0.0;
pub const SIGMA: f64 = BETA * 6.0;
const GAMMA: f64 = BETA * 0.03;
const P_DRAW: f64 = 0.0;
pub const GAMMA: f64 = BETA * 0.03;
pub const P_DRAW: f64 = 0.0;
pub const EPSILON: f64 = 1e-6;
pub const ITERATIONS: usize = 30;