summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/mock_board.rb10
1 files changed, 9 insertions, 1 deletions
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