summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight/fln_bot_rules.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/colonial_twilight/fln_bot_rules.rb')
-rw-r--r--lib/colonial_twilight/fln_bot_rules.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/colonial_twilight/fln_bot_rules.rb b/lib/colonial_twilight/fln_bot_rules.rb
index eb06af6..625d31e 100644
--- a/lib/colonial_twilight/fln_bot_rules.rb
+++ b/lib/colonial_twilight/fln_bot_rules.rb
@@ -180,7 +180,7 @@ module ColonialTwilight
s = spaces.sample
n -= h[s] = (g = _removable_guerrillas(s)) >= n ? n : g
end
- h
+ h.reject { |_k, v| v.zero? }
end
# 1) place: outofplay -> available | bases -> guerrillas if choice