diff options
author | Justin Worthe <justin@worthe-it.co.za> | 2018-07-01 18:06:05 +0200 |
---|---|---|
committer | Justin Worthe <justin@worthe-it.co.za> | 2018-07-01 18:06:05 +0200 |
commit | 26aefe70fa11f209726e5b8a15bd05303726396e (patch) | |
tree | e8ab0ae5fa230e0e1ea6b51b240305d59d59d662 /src/strategy | |
parent | 1ac0449bd0313ad01da0d253f7b45b45287314b7 (diff) |
Set up (failing) property test for working of new game state
Unfortunately, for this test to work, I still need to implement the
function that reads the game state and goes from one to the other.
Diffstat (limited to 'src/strategy')
-rw-r--r-- | src/strategy/monte_carlo.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strategy/monte_carlo.rs b/src/strategy/monte_carlo.rs index dae74bc..19e663d 100644 --- a/src/strategy/monte_carlo.rs +++ b/src/strategy/monte_carlo.rs @@ -185,7 +185,7 @@ fn sensible_buildings(settings: &GameSettings, player: &Player, has_max_teslas: for b in BuildingType::all().iter() { let building_setting = settings.building_settings(*b); let affordable = building_setting.price <= player.energy; - let is_tesla = b == BuildingType::Tesla; + let is_tesla = *b == BuildingType::Tesla; if affordable && (!is_tesla || !has_max_teslas) { result.push(*b); } |