summaryrefslogtreecommitdiffstats
path: root/spec/fln_bot_rules_spec.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-10-30 11:13:35 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2023-10-30 11:13:35 +0100
commit9b47c09704523be98ab1cbdbb80b8243be08afe3 (patch)
treef23cccae8b117b16c36c6dbdba3a34e03f0361fa /spec/fln_bot_rules_spec.rb
parentb336226f0ab09407ac2048d00b92f8f824dbdc5c (diff)
downloadcolonial-twilight-9b47c09704523be98ab1cbdbb80b8243be08afe3.zip
colonial-twilight-9b47c09704523be98ab1cbdbb80b8243be08afe3.tar.gz
FLNBotRules : rally_6 considers terror && oppose
Diffstat (limited to 'spec/fln_bot_rules_spec.rb')
-rw-r--r--spec/fln_bot_rules_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/fln_bot_rules_spec.rb b/spec/fln_bot_rules_spec.rb
index fed7b24..612e32d 100644
--- a/spec/fln_bot_rules_spec.rb
+++ b/spec/fln_bot_rules_spec.rb
@@ -294,6 +294,18 @@ describe ColonialTwilight::FLNBotRules do
expect(@rules.may_rally_6_in?(a, false)).to be true
end
+ it 'may_rally_6_in? pop 2+ and control but oppose' do
+ a = Sector.new(pop: 2, gov_cubes: 1, fln_active: 1, oppose: true)
+ @board.available_fln_underground = 1
+ expect(@rules.may_rally_6_in?(a, false)).to be false
+ end
+
+ it 'may_rally_6_in? pop 2+ and control but oppose but terror' do
+ a = Sector.new(pop: 2, gov_cubes: 1, fln_active: 1, oppose: true, terror: 1)
+ @board.available_fln_underground = 1
+ expect(@rules.may_rally_6_in?(a, false)).to be true
+ end
+
it 'rally_6_priority population' do
a = Sector.new(pop: 2)
b = Sector.new(pop: 1)