From 4ceec65b088f05d4ad03f9ac70b1d63452fd8197 Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Thu, 22 Aug 2019 19:57:40 +0200 Subject: Updated to default config --- Cargo.toml | 6 +++--- src/bin/explore-config.rs | 10 +++++----- src/strategy/minimax.rs | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index ad22026..e7e33fc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,9 +13,9 @@ fnv = "1.0.6" rayon = "1.1.0" [profile.release] -debug = true -debug-assertions = true -overflow-checks = true +# debug = true +# debug-assertions = true +# overflow-checks = true [features] logging = [] diff --git a/src/bin/explore-config.rs b/src/bin/explore-config.rs index 10f75eb..5fb599a 100644 --- a/src/bin/explore-config.rs +++ b/src/bin/explore-config.rs @@ -11,16 +11,16 @@ fn main() { json::read_state_from_json_file(&Path::new(&format!("./tests/example-state.json"))) .unwrap(), ); - let depth = 100; + let depth = 1000; let configs = ScoreConfigTrials { max_health_weight: vec![50., 150.], total_health_weight: vec![5., 20.], - points_weight: vec![0., 1.], - victory_weight: vec![3000.], + points_weight: vec![1.], + victory_weight: vec![3000., 3500., 4000., 4500., 5000., 5500., 6000., 7000.], snowball_weight: vec![10.], - bomb_weight: vec![0., 10., 100., 1000., 10000.], - explore_exploit_weight: vec![5., 100.], + bomb_weight: vec![0.], + explore_exploit_weight: vec![10., 500.], } .reify(); diff --git a/src/strategy/minimax.rs b/src/strategy/minimax.rs index 5ddd928..656ee36 100644 --- a/src/strategy/minimax.rs +++ b/src/strategy/minimax.rs @@ -24,9 +24,9 @@ impl Default for ScoreConfig { max_health_weight: 100., total_health_weight: 10., points_weight: 1., - victory_weight: 3000., + victory_weight: 4500., snowball_weight: 10., - bomb_weight: 0., + bomb_weight: 10., explore_exploit_weight: 100., } } -- cgit v1.2.3