Class: Checkers::AI::Engine::Alphabeta

Inherits:
Base
  • Object
show all
Defined in:
lib/checkers/ai/engine/alphabeta.rb

Instance Attribute Summary

Attributes inherited from Base

#tree_depth

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Checkers::AI::Engine::Base

Instance Method Details

#next_board(board) ⇒ Object



7
8
9
# File 'lib/checkers/ai/engine/alphabeta.rb', line 7

def next_board(board)
  super(board) { |root, tree_depth| alphabeta(root, tree_depth, Float::MIN, Float::MAX, true) }
end