Class: Bandit::RoundRobinPlayer
- Inherits:
-
BasePlayer
- Object
- BasePlayer
- Bandit::RoundRobinPlayer
- Defined in:
- lib/bandit/players/round_robin.rb
Instance Method Summary collapse
Methods inherited from BasePlayer
#get, get_player, #initialize, #name, #set
Constructor Details
This class inherits a constructor from Bandit::BasePlayer
Instance Method Details
#choose_alternative(experiment) ⇒ Object
3 4 5 |
# File 'lib/bandit/players/round_robin.rb', line 3 def choose_alternative(experiment) experiment.alternatives.sample end |