Simplified energy random chance
authorJustin Worthe <justin@worthe-it.co.za>
Sun, 2 Sep 2018 19:26:51 +0000 (21:26 +0200)
committerJustin Worthe <justin@worthe-it.co.za>
Sun, 2 Sep 2018 19:26:51 +0000 (21:26 +0200)
src/strategy/monte_carlo.rs

index f6b8956..be53ef1 100644 (file)
@@ -220,10 +220,8 @@ fn random_move<R: Rng>(player: &Player, opponent: &Player, rng: &mut R) -> Comma
             let point = Point::new_index(p);
             let weight = if player.occupied & point.to_either_bitfield() != 0 {
                 0
-            } else if point.x() < 2 {
-                2
             } else {
-                1
+                2
             };
 
             energy_end += weight;