Method: Z4BC::Game#initialize

Defined in:
lib/z4blockchain.rb

#initialize(i) ⇒ Game

Returns a new instance of Game.



162
163
164
165
166
167
# File 'lib/z4blockchain.rb', line 162

def initialize i
  @id = i
  @game = PStore.new("db/game-game-#{i}.pstore")
  @wins = PStore.new("db/game-wins-#{i}.pstore")
  @lvls = PStore.new("db/game-lvls-#{i}.pstore")
end