Class: EloBrain::DevelopmentCoefficient::Situations::Starting
- Inherits:
-
Object
- Object
- EloBrain::DevelopmentCoefficient::Situations::Starting
- Defined in:
- lib/elo_brain/development_coefficient/situations/starting.rb
Constant Summary collapse
- COEFFICIENT =
40
- NB_MAXIMUM_MATCHES =
30
Instance Method Summary collapse
- #eligible? ⇒ Boolean
-
#initialize(nb_matches:) ⇒ Starting
constructor
A new instance of Starting.
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
13 14 15 |
# File 'lib/elo_brain/development_coefficient/situations/starting.rb', line 13 def eligible? @nb_matches < NB_MAXIMUM_MATCHES end |