Class: EloBrain::DevelopmentCoefficient::Situations::Starting

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

Constant Summary collapse

COEFFICIENT =
40
NB_MAXIMUM_MATCHES =
30

Instance Method Summary collapse

Constructor Details

#initialize(nb_matches:) ⇒ Starting

Returns a new instance of Starting.



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

def initialize(nb_matches:)
  @nb_matches = nb_matches
end

Instance Method Details

#eligible?Boolean

Returns:

  • (Boolean)


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

def eligible?
  @nb_matches < NB_MAXIMUM_MATCHES
end