diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-09-23 12:13:11 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-09-23 12:13:11 +0200 |
commit | b21d125966e118914f0442f322eebc298be78824 (patch) | |
tree | 1883ec0d922675d4179ef126b9c12df4b6571bda /spec | |
parent | fcb4a526a76e0e8464fc42a92145fe0ed149026b (diff) | |
download | colonial-twilight-b21d125966e118914f0442f322eebc298be78824.zip colonial-twilight-b21d125966e118914f0442f322eebc298be78824.tar.gz |
FLNRules : support agitate
Diffstat (limited to 'spec')
-rw-r--r-- | spec/fln_rules_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/fln_rules_spec.rb b/spec/fln_rules_spec.rb index 8c3ec04..486d3ec 100644 --- a/spec/fln_rules_spec.rb +++ b/spec/fln_rules_spec.rb @@ -22,6 +22,18 @@ describe ColonialTwilight::FLNRules do it 'collects spaces where operation can be conducted' do expect(rules.rally_spaces(board).size).to eq(27) end end + describe 'Agitate' do + board = ColonialTwilight::Board.new + it 'collects spaces where operation can be conducted' do expect(rules.agitate_spaces(board.spaces).size).to eq(0) end + end + + describe 'Agitate' do + board = ColonialTwilight::Board.new + board.load :short + # 6 with bases + 1 in fln control + it 'collects spaces where operation can be conducted' do expect(rules.agitate_spaces(board.spaces).size).to eq(5) end + end + describe 'Attack' do board = ColonialTwilight::Board.new # 25 sectors + 3 cities |