diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-30 11:13:35 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-30 11:13:35 +0100 |
commit | 9b47c09704523be98ab1cbdbb80b8243be08afe3 (patch) | |
tree | f23cccae8b117b16c36c6dbdba3a34e03f0361fa /spec/fln_bot_rules_spec.rb | |
parent | b336226f0ab09407ac2048d00b92f8f824dbdc5c (diff) | |
download | colonial-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.rb | 12 |
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) |