From 97880f6a368085e9a409f1fb0030791a4a65005c Mon Sep 17 00:00:00 2001 From: Justin Worthe Date: Sat, 12 May 2018 17:39:06 +0200 Subject: Initial stab at monte carlo implementation Doesn't seem to be working quite right... just sits there accumulating energy. --- src/engine/command.rs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/engine/command.rs') diff --git a/src/engine/command.rs b/src/engine/command.rs index b5cf528..c2edb81 100644 --- a/src/engine/command.rs +++ b/src/engine/command.rs @@ -23,3 +23,10 @@ pub enum BuildingType { Attack = 1, Energy = 2, } + +impl BuildingType { + pub fn all() -> [BuildingType; 3] { + use self::BuildingType::*; + [Defence, Attack, Energy] + } +} -- cgit v1.2.3