diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2024-03-20 14:24:42 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2024-03-20 14:24:42 +0100 |
commit | 4fe34a024c77df99b263f6b97c43f9870a9d3160 (patch) | |
tree | c2d7d09afe7303c739484dce324967bf6368aa82 /lib/colonial_twilight/fln_bot_rules.rb | |
parent | ad77e25eec96122f94fc6ae2db258c1aea984980 (diff) | |
download | colonial-twilight-4fe34a024c77df99b263f6b97c43f9870a9d3160.zip colonial-twilight-4fe34a024c77df99b263f6b97c43f9870a9d3160.tar.gz |
some rubocop cleanup
Diffstat (limited to 'lib/colonial_twilight/fln_bot_rules.rb')
-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 578cd49..3716a34 100644 --- a/lib/colonial_twilight/fln_bot_rules.rb +++ b/lib/colonial_twilight/fln_bot_rules.rb @@ -37,7 +37,7 @@ module ColonialTwilight def rally1?(board = @board) # rally would place a base (rally 1 or 2) - r = board.available_fln_bases.positive? && board.has { |s| (may_rally_1_in?(s) || may_rally_2_in?(s)) } + r = board.available_fln_bases.positive? && board.has { |s| may_rally_1_in?(s) || may_rally_2_in?(s) } dbg 'RALLY 1', r r end @@ -102,7 +102,7 @@ module ColonialTwilight if r # may agitate if : FLN base or control after rally n = already_rallied ? 0 : place_guerrillas_in(space).values.sum - r &= (space.fln_bases.positive? || (space.gov < (space.fln + n))) + r &= space.fln_bases.positive? || (space.gov < (space.fln + n)) end dbg " may_rally_6_in : #{space.name}", r r |