From d9b2a372f19bf78c248888961d4bac08f2ff015f Mon Sep 17 00:00:00 2001 From: Eason <30045503+Eason0729@users.noreply.github.com> Date: Wed, 12 Jun 2024 21:00:38 +0800 Subject: [PATCH] update feature --- tank-rust/src/dqn/feature.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tank-rust/src/dqn/feature.rs b/tank-rust/src/dqn/feature.rs index 78d611d..09c656d 100644 --- a/tank-rust/src/dqn/feature.rs +++ b/tank-rust/src/dqn/feature.rs @@ -179,7 +179,7 @@ impl<'a> Info<'a> { reward + match next.player.score - self.player.score { - x if x > 2 => 20.0, + x if x > 2 => 20.0, // bypass emeny x if x > 0 => 10.0, // too high, tank my ignore power station _ => -1.0, }