From 99378ed484b04c710e0307db93ada65b29d93bae Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sun, 1 Jul 2018 22:39:44 +0200 Subject: Started filling in bitwise simulation logic --- src/input/json.rs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) (limited to 'src/input/json.rs') diff --git a/src/input/json.rs b/src/input/json.rs index b509926..13f0b5e 100644 --- a/src/input/json.rs +++ b/src/input/json.rs @@ -244,18 +244,7 @@ impl State { ) .collect() } - - fn unconstructed_buildings_to_bitwise_engine(&self, player_type: char) -> Vec { - self.game_map.iter() - .flat_map(|row| row.iter() - .flat_map(|cell| cell.buildings.iter() - .filter(|b| b.player_type == player_type && b.construction_time_left >= 0) - .map(|b| b.to_bitwise_engine_unconstructed()) - ) - ) - .collect() - } - + fn buildings_to_expressive_engine(&self, player_type: char) -> Vec { self.game_map.iter() .flat_map(|row| row.iter() -- cgit v1.2.3