summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2023-09-23 12:13:11 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2023-09-23 12:13:11 +0200
commitb21d125966e118914f0442f322eebc298be78824 (patch)
tree1883ec0d922675d4179ef126b9c12df4b6571bda /spec
parentfcb4a526a76e0e8464fc42a92145fe0ed149026b (diff)
downloadcolonial-twilight-b21d125966e118914f0442f322eebc298be78824.zip
colonial-twilight-b21d125966e118914f0442f322eebc298be78824.tar.gz
FLNRules : support agitate
Diffstat (limited to 'spec')
-rw-r--r--spec/fln_rules_spec.rb12
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