summaryrefslogtreecommitdiffstats
path: root/lib/colonial_twilight
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-10-27 14:09:33 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2023-10-27 14:09:33 +0200
commit7311f07e16fc73c06d2ac601995c0955d83ac83c (patch)
tree1383b4abe24aa05fd6e1445876ecce9a39f508f6 /lib/colonial_twilight
parent14cc1f5de9ad44887a913b3638a9403c661f11a7 (diff)
downloadcolonial-twilight-7311f07e16fc73c06d2ac601995c0955d83ac83c.zip
colonial-twilight-7311f07e16fc73c06d2ac601995c0955d83ac83c.tar.gz
FLNBotRules spec : simplify ({ ... }) into ( ... )
Diffstat (limited to 'lib/colonial_twilight')
-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