class Gameworks::Game::Snapshot

Attributes

player_scores[R]
state[R]

Public Class Methods

new(game) click to toggle source
# File lib/gameworks/game_snapshot.rb, line 6
def initialize(game)
  @player_scores = {}
  game.players.each{ |p| @player_scores[p] = p.score }
  @state = game.state
end