Class: EloBrain::DevelopmentCoefficient::Situations::Amateur

Inherits:
Object
  • Object
show all
Defined in:
lib/elo_brain/development_coefficient/situations/amateur.rb

Constant Summary collapse

COEFFICIENT =
20
ELO_MAX =
2_400

Instance Method Summary collapse

Constructor Details

#initialize(elo:) ⇒ Amateur

Returns a new instance of Amateur.



9
10
11
# File 'lib/elo_brain/development_coefficient/situations/amateur.rb', line 9

def initialize(elo:)
  @elo = elo
end

Instance Method Details

#eligible?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/elo_brain/development_coefficient/situations/amateur.rb', line 13

def eligible?
  @elo < ELO_MAX
end