diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-06 16:45:18 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-10-06 16:45:18 +0200 |
commit | 853ab7db1c4bcb1a8f95b400435c24a5e8bcf6c7 (patch) | |
tree | 9a5038a6ee69829a09f9e5ce896f3f5f497cd0d0 /spec/fln_rules_spec.rb | |
parent | dcc1cc51c4ac9eb80431999fef79f0d46728073b (diff) | |
download | colonial-twilight-853ab7db1c4bcb1a8f95b400435c24a5e8bcf6c7.zip colonial-twilight-853ab7db1c4bcb1a8f95b400435c24a5e8bcf6c7.tar.gz |
FLNRulse : clean, add #max_fln_to_place_in
Diffstat (limited to 'spec/fln_rules_spec.rb')
-rw-r--r-- | spec/fln_rules_spec.rb | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/spec/fln_rules_spec.rb b/spec/fln_rules_spec.rb index a373082..d266cb4 100644 --- a/spec/fln_rules_spec.rb +++ b/spec/fln_rules_spec.rb @@ -24,17 +24,29 @@ describe ColonialTwilight::FLNRules do # 25 sectors + 2 countries expect(rules.rally_spaces(@board).size).to eq(27) end + + it 'may place 1 FLN cube' do + @board.load :short + space = @board.by_name('Mostaganem') + expect(rules.max_fln_to_place_in(space)).to eq(1) + end + + it 'may place 2 FLN cube' do + @board.load :short + space = @board.by_name('Orleansville') + expect(rules.max_fln_to_place_in(space)).to eq(2) + end end describe 'Agitate' do it 'collects spaces where operation can be conducted' do - expect(rules.agitate_spaces(@board.spaces).size).to eq(0) + expect(rules.agitate_spaces(@board).size).to eq(0) end it 'collects spaces where operation can be conducted' do @board.load :short # 6 with bases + 1 in fln control - expect(rules.agitate_spaces(@board.spaces).size).to eq(5) + expect(rules.agitate_spaces(@board).size).to eq(5) end end |