diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-30 10:55:18 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-30 10:55:18 +0100 |
commit | b336226f0ab09407ac2048d00b92f8f824dbdc5c (patch) | |
tree | bd210da862fcb8893b85387e688dc51a6bc0d370 /spec | |
parent | 38f37a646f25dc3ce81e540419fe63f215c43068 (diff) | |
download | colonial-twilight-b336226f0ab09407ac2048d00b92f8f824dbdc5c.zip colonial-twilight-b336226f0ab09407ac2048d00b92f8f824dbdc5c.tar.gz |
FLNRulse : add #max_agitate_cost(space)
Diffstat (limited to 'spec')
-rw-r--r-- | spec/fln_rules_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/fln_rules_spec.rb b/spec/fln_rules_spec.rb index ce9b384..9a4ebdc 100644 --- a/spec/fln_rules_spec.rb +++ b/spec/fln_rules_spec.rb @@ -72,6 +72,16 @@ describe ColonialTwilight::FLNRules do # 4 with bases + 1 in fln control : but only 1 without fln control expect(rules.agitate_spaces(@board).size).to eq(1) end + + it 'compute agitate cost terror and shift' do + a = Sector.new(terror: 2) + expect(rules.max_agitate_cost(a)).to eq(3) + end + + it 'compute agitate terror' do + a = Sector.new(terror: 1, oppose: true) + expect(rules.max_agitate_cost(a)).to eq(1) + end end describe 'Attack' do |