From ae129f7270dbe752bea0e1ceb5d1da5a79f4a1a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 30 Oct 2023 11:14:05 +0100 Subject: spec mock : fix terror --- spec/mock_board.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/spec/mock_board.rb b/spec/mock_board.rb index e03be2b..e1db1b3 100644 --- a/spec/mock_board.rb +++ b/spec/mock_board.rb @@ -38,7 +38,7 @@ class Sector end def terror - @data[:terror] + @data[:terror] || 0 end def pop @@ -76,6 +76,14 @@ class Sector def gov gov_cubes + gov_bases end + + def fln_control? + fln > gov + end + + def gov_control? + gov < fln + end end class Board -- cgit v1.1-2-g2b99