summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/strategy/monte_carlo.rs4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/strategy/monte_carlo.rs b/src/strategy/monte_carlo.rs
index f6b8956..be53ef1 100644
--- a/src/strategy/monte_carlo.rs
+++ b/src/strategy/monte_carlo.rs
@@ -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;