Class: RubyTictactoe::MaximizingPlayer
- Inherits:
-
AlphaBetaPlayer
- Object
- AlphaBetaPlayer
- RubyTictactoe::MaximizingPlayer
- Defined in:
- lib/alpha_beta_player.rb
Instance Attribute Summary
Attributes inherited from AlphaBetaPlayer
Instance Method Summary collapse
Methods inherited from AlphaBetaPlayer
Constructor Details
This class inherits a constructor from RubyTictactoe::AlphaBetaPlayer
Instance Method Details
#get_beta(beta, score) ⇒ Object
30 31 32 |
# File 'lib/alpha_beta_player.rb', line 30 def get_beta(beta, score) score < beta ? score : beta end |
#return_best_score(alpha, beta) ⇒ Object
34 35 36 |
# File 'lib/alpha_beta_player.rb', line 34 def return_best_score(alpha, beta) beta end |