Class: RubyTictactoe::MinimizingPlayer
- Inherits:
-
AlphaBetaPlayer
- Object
- AlphaBetaPlayer
- RubyTictactoe::MinimizingPlayer
- Defined in:
- lib/ai.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_alpha(alpha, score) ⇒ Object
89 90 91 |
# File 'lib/ai.rb', line 89 def get_alpha(alpha, score) score > alpha ? score : alpha end |
#return_best_score(alpha, beta) ⇒ Object
93 94 95 |
# File 'lib/ai.rb', line 93 def return_best_score(alpha, beta) alpha end |