diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-30 11:14:30 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-30 11:14:30 +0100 |
commit | a9e12740c8ce7f0a27a8f43612f00004a0f75fd7 (patch) | |
tree | 6cfec66252336e47ac190e29e71ea8dade00b1d1 /lib | |
parent | ae129f7270dbe752bea0e1ceb5d1da5a79f4a1a1 (diff) | |
download | colonial-twilight-a9e12740c8ce7f0a27a8f43612f00004a0f75fd7.zip colonial-twilight-a9e12740c8ce7f0a27a8f43612f00004a0f75fd7.tar.gz |
typos and comment
Diffstat (limited to 'lib')
-rw-r--r-- | lib/colonial_twilight/fln_bot_rules.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/colonial_twilight/fln_bot_rules.rb b/lib/colonial_twilight/fln_bot_rules.rb index b5bdbc9..450de2d 100644 --- a/lib/colonial_twilight/fln_bot_rules.rb +++ b/lib/colonial_twilight/fln_bot_rules.rb @@ -69,7 +69,7 @@ module ColonialTwilight end def may_rally_3_in?(space) - # at FLN bases, with 2- FLN underground or 0 fln_undergroud in country or 0 pop + # at FLN bases, with 2- FLN underground or 0 fln_underground in country or 0 pop r = may_rally_in?(space) && !space.fln_bases.zero? && (space.country? || space.pop.zero? ? space.fln_underground.zero? : space.fln_underground < 2) dbg " may_rally_3_in : #{space.name}", r @@ -180,7 +180,7 @@ module ColonialTwilight s = spaces.sample n -= h[s] = (g = _removable_guerrillas(s)) >= n ? n : g end - h.reject { |_k, v| v.zero? } + h.reject { |_k, v| v.zero? } # FIXME in empty? maybe hide active guerrillas ? end # 1) place: outofplay -> available | bases -> guerrillas if choice |