Class: GameSimulator
- Inherits:
-
Object
- Object
- GameSimulator
- Defined in:
- lib/were_wolf/game_simulator.rb
Instance Method Summary collapse
-
#initialize(no_of_wolves, no_of_villagers, no_of_runs) ⇒ GameSimulator
constructor
A new instance of GameSimulator.
- #simulate ⇒ Object
Constructor Details
#initialize(no_of_wolves, no_of_villagers, no_of_runs) ⇒ GameSimulator
Returns a new instance of GameSimulator.
4 5 6 7 8 |
# File 'lib/were_wolf/game_simulator.rb', line 4 def initialize(no_of_wolves, no_of_villagers, no_of_runs) @no_of_wolves = no_of_wolves @no_of_villagers = no_of_villagers @no_of_runs = no_of_runs end |