summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Worthe <justin@worthe-it.co.za>2019-08-22 19:57:40 +0200
committerJustin Worthe <justin@worthe-it.co.za>2019-08-22 19:57:40 +0200
commit4ceec65b088f05d4ad03f9ac70b1d63452fd8197 (patch)
treefe9eac6cbe3c62841704c4f454c14ee987be7d7d
parent74f593bb27b19c8d021918a46a6447a80e25f828 (diff)
Updated to default config
-rw-r--r--Cargo.toml6
-rw-r--r--src/bin/explore-config.rs10
-rw-r--r--src/strategy/minimax.rs4
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.,
}
}