Module: Helpers

Included in:
Algorithm, Weight
Defined in:
lib/gthc/olson/helpers.rb

Class Method Summary collapse

Class Method Details

.calculatePeopleNeeded(nightBoolean, phase) ⇒ Object



2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/gthc/olson/helpers.rb', line 2

def self.calculatePeopleNeeded(nightBoolean, phase)
  if phase == "Black"
    if nightBoolean
      return 10
    else
      return 2
    end
  end
  if phase == "Blue"
    if nightBoolean
      return 6
    else
      return 1
    end
  end
  if phase == "White"
    if nightBoolean
      return 2
    else
      return 1
    end
  end
end