diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-09-02 21:26:51 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-09-02 21:26:51 +0200 |
commit | 20fa684dab660ad6cd9b9dbf2c6fa632f6971755 (patch) | |
tree | 79e428980adf51a4e40f891904123a69690dbfbe /src/strategy | |
parent | b78eae28a11edefb27599d16307f248b52f74b6d (diff) |
Simplified energy random chance
Diffstat (limited to 'src/strategy')
-rw-r--r-- | src/strategy/monte_carlo.rs | 4 |
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; |