class RubyTictactoe::AlphaBetaPlayer
Attributes
marker[RW]
opponent[RW]
Public Class Methods
new(player)
click to toggle source
# File lib/ai.rb, line 74 def initialize(player) @marker = player.marker @opponent = player.opponent end
Public Instance Methods
get_alpha(alpha, score)
click to toggle source
# File lib/ai.rb, line 79 def get_alpha(alpha, score) alpha end
get_beta(beta, score)
click to toggle source
# File lib/ai.rb, line 83 def get_beta(beta, score) beta end