lib/share/player.rb
# This method puts the value towards zero
# used to normalize speed
This method puts the value towards zero
used to normalize speed
This method puts the value towards zero used to normalize speed
def normalize_zero(x)
    return x if x.zero?
    return x - 1 if x.positive?
    x + 1
  end
def normalize_zero ( x ) return x if x . zero? return x - 1 if x . positive? x + 1 end
This method puts the value towards zero
used to normalize speed
This method puts the value towards zero used to normalize speed
x
<not_specific>