class Rubygoal::AveragePlayer

Public Class Methods

new(*args) click to toggle source
Calls superclass method Rubygoal::Player::new
# File lib/rubygoal/players/average.rb, line 5
def initialize(*args)
  super
  config = Rubygoal.configuration
  error_range = config.average_lower_error..config.average_upper_error

  @error = Random.rand(error_range)
  @speed = config.average_speed

  @type = :average
end