class Tundengine::Player::InMatch

Attributes

name[R]
strategy[R]

Public Class Methods

new(name, strategy) click to toggle source
# File lib/tundengine/player/in_match.rb, line 9
def initialize(name, strategy)
  @name         = name
  @strategy     = strategy
  @match_points = 0
end

Public Instance Methods

identifier() click to toggle source
# File lib/tundengine/player/in_match.rb, line 19
def identifier
  [@name]
end
in_new_round() click to toggle source
# File lib/tundengine/player/in_match.rb, line 23
def in_new_round
  InRound.new(self)
end
to_s() click to toggle source
# File lib/tundengine/player/in_match.rb, line 15
def to_s
  @name
end